This commit is contained in:
Jim Shield
2022-07-05 23:14:01 +01:00
committed by GitHub
parent 3147c4a74f
commit 5b5d0b84b3
4 changed files with 276 additions and 285 deletions

View File

@@ -7,11 +7,9 @@ CreateThread(function()
TriggerClientEvent('jim-consumables:Consume', source, item.name)
end)
end
local itemcheck = {}
local emotecheck = {}
for k,v in pairs(Config.Consumables) do
QBCore.Functions.CreateUseableItem(k, function(source, item) TriggerClientEvent('jim-consumables:Consume', source, item.name) end)
if not QBCore.Shared.Items[k] then print("Item check - '"..k.."' not found in the shared lua") elseif QBCore.Shared.Items[k] then end
if not Config.Emotes[v.emote] then print("Emote check - '"..k.."' requested emote '"..v.emote.."' - not found in config.lua") elseif Config.Emotes[v.emote] then end
if not QBCore.Shared.Items[k] then print("Item check - '"..k.."' not found in the shared lua") end
if not Config.Emotes[v.emote] then print("Emote check - '"..k.."' requested emote '"..v.emote.."' - not found in config.lua") end
end
end)