Update cocaine.lua
This commit is contained in:
1 parent
d2f70d78ed
commit
d97cd43951
1 file changed
+8
-4
+8
-4
@@ -3,7 +3,8 @@ local cuttingcoke = nil
|
|||||||
local baggingcoke = nil
|
local baggingcoke = nil
|
||||||
local locations = ps.callback('md-drugs:server:GetCokeLocations')
|
local locations = ps.callback('md-drugs:server:GetCokeLocations')
|
||||||
|
|
||||||
local function CutCoke(coords, offset, rotation)
|
local function CutCoke(coords, offset, rotation)
|
||||||
|
cuttingcoke = true
|
||||||
local animDict, animName = "anim@amb@business@coc@coc_unpack_cut_left@", "coke_cut_v5_coccutter"
|
local animDict, animName = "anim@amb@business@coc@coc_unpack_cut_left@", "coke_cut_v5_coccutter"
|
||||||
ps.requestAnim(animDict, 500)
|
ps.requestAnim(animDict, 500)
|
||||||
local animDuration = GetAnimDuration(animDict, animName) * 1000
|
local animDuration = GetAnimDuration(animDict, animName) * 1000
|
||||||
@@ -47,10 +48,12 @@ local function CutCoke(coords, offset, rotation)
|
|||||||
DeleteEntity(entitiesList[i])
|
DeleteEntity(entitiesList[i])
|
||||||
end
|
end
|
||||||
RemoveAnimDict(animDict)
|
RemoveAnimDict(animDict)
|
||||||
FreezeEntityPosition(ped, false)
|
FreezeEntityPosition(ped, false)
|
||||||
|
cuttingcoke = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
local function BagCoke(coords, offset, rotation)
|
local function BagCoke(coords, offset, rotation)
|
||||||
|
baggingcoke = true
|
||||||
local ver = ""
|
local ver = ""
|
||||||
local animDict, animName = "anim@amb@business@meth@meth_smash_weight_check@", "break_weigh_"..ver.."char01"
|
local animDict, animName = "anim@amb@business@meth@meth_smash_weight_check@", "break_weigh_"..ver.."char01"
|
||||||
ps.requestAnim(animDict, 500)
|
ps.requestAnim(animDict, 500)
|
||||||
@@ -108,7 +111,8 @@ local function BagCoke(coords, offset, rotation)
|
|||||||
DeleteEntity(entitiesList[i])
|
DeleteEntity(entitiesList[i])
|
||||||
end
|
end
|
||||||
RemoveAnimDict(animDict)
|
RemoveAnimDict(animDict)
|
||||||
FreezeEntityPosition(ped, false)
|
FreezeEntityPosition(ped, false)
|
||||||
|
baggingcoke = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
for k, v in pairs (locations.MakePowder) do
|
for k, v in pairs (locations.MakePowder) do
|
||||||
|
|||||||
Reference in new issue
Block a user