refactor(client): release models (#11)

This commit is contained in:
Solareon
2024-06-23 08:35:43 -07:00
committed by GitHub
parent 31b2a464e2
commit 177e195c69
+2
View File
@@ -71,6 +71,8 @@ local function attachGear()
currentGear.mask = CreateObject(maskModel, 1.0, 1.0, 1.0, true, true, false) currentGear.mask = CreateObject(maskModel, 1.0, 1.0, 1.0, true, true, false)
local bone2 = GetPedBoneIndex(cache.ped, 12844) local bone2 = GetPedBoneIndex(cache.ped, 12844)
AttachEntityToEntity(currentGear.mask, cache.ped, bone2, 0.0, 0.0, 0.0, 180.0, 90.0, 0.0, true, true, false, false, 2, true) AttachEntityToEntity(currentGear.mask, cache.ped, bone2, 0.0, 0.0, 0.0, 180.0, 90.0, 0.0, true, true, false, false, 2, true)
SetModelAsNoLongerNeeded(maskModel)
SetModelAsNoLongerNeeded(tankModel)
end end
local function takeOffSuit() local function takeOffSuit()