test test

This commit is contained in:
Mustache Dom committed 2024-10-23 16:04:09 -07:00
1 parent ca2a9205b0
commit fefd53857e
7 files changed
+109 -93

No files matched your search

+4 -5
View File
@@ -7,16 +7,15 @@ for k, v in pairs (Consumables.Items) do QBCore.Functions.CreateUseableItem(k, f
if v.effect == nil then v.effect = 0 end
if v.anim == nil then v.anim = Consumables.defaultanim end
if v.progressbartext == nil then v.progressbartext = Consumables.defaultprogresstext end
if v.add == nil then v.add = 'none' end
if v.add == nil then v.add = {hunger = 0} end
TriggerClientEvent("md-drugs:client:consumedrugs", source, v.time, v.effect, v.anim, v.progressbartext, v.add, k)
end)
end
RegisterNetEvent('md-drugs:server:removeconsum', function(item)
local src = source
RemoveItem(source,item, 1)
Log(GetName(source) .. ' Got High With ' .. item .. '!', 'consuming')
end)
RemoveItem(source,item, 1)
Log(GetName(source) .. ' Got High With ' .. item .. '!', 'consuming')
end)
RegisterNetEvent('md-drugs:server:updatestatus', function(stat, statval)
print(stat,statval)