Update cocaine.lua

Added missing TriggerServerEvents
This commit is contained in:
Tater1987 authored and GitHub committed 2025-08-12 15:26:56 -05:00
1 parent b5eb60834f
commit e4c41458dc
1 file changed
+3
+3
View File
@@ -141,6 +141,7 @@ for k, v in pairs (locations.CuttingCoke) do
ps.notify(ps.lang('Catches.itemMissings', ps.getLabel('bakingsoda')), 'error') ps.notify(ps.lang('Catches.itemMissings', ps.getLabel('bakingsoda')), 'error')
return return
end end
TriggerServerEvent("md-drugs:server:cutcokeone", k)
CutCoke(v.loc, v.offset, v.rotation) CutCoke(v.loc, v.offset, v.rotation)
end, end,
canInteract = function() canInteract = function()
@@ -162,6 +163,7 @@ for k, v in pairs (locations.BaggingCoke) do
ps.notify(ps.lang('Catches.itemMissings', ps.getLabel('empty_weed_bag')), 'error') ps.notify(ps.lang('Catches.itemMissings', ps.getLabel('empty_weed_bag')), 'error')
return return
end end
TriggerServerEvent("md-drugs:server:bagcoke", k)
BagCoke(v.loc, v.offset, v.rotation) BagCoke(v.loc, v.offset, v.rotation)
end, end,
canInteract = function() canInteract = function()
@@ -206,3 +208,4 @@ CreateThread(function()
BikerCocaine.Security.Set(BikerCocaine.Security.upgrade) BikerCocaine.Security.Set(BikerCocaine.Security.upgrade)
BikerCocaine.Details.Enable({BikerCocaine.Details.cokeBasic1, BikerCocaine.Details.cokeBasic2, BikerCocaine.Details.cokeBasic3}, true) BikerCocaine.Details.Enable({BikerCocaine.Details.cokeBasic1, BikerCocaine.Details.cokeBasic2, BikerCocaine.Details.cokeBasic3}, true)
end) end)