Update cocaine.lua
This commit is contained in:
1 parent
d2f70d78ed
commit
d97cd43951
1 file changed
+4
@@ -4,6 +4,7 @@ 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
|
||||||
@@ -48,9 +49,11 @@ local function CutCoke(coords, offset, rotation)
|
|||||||
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)
|
||||||
@@ -109,6 +112,7 @@ local function BagCoke(coords, offset, rotation)
|
|||||||
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