refactor(client): release models (#11)
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user