Version Bump 1.1 - Optimizations, Tidy, Fixes

This commit is contained in:
Jim Shield authored and GitHub committed 2022-07-20 15:51:38 +01:00
1 parent d17334e6fe
commit b15836d42e
5 files changed
+180 -99

No files matched your search

+2 -2
View File
@@ -2,12 +2,12 @@ local QBCore = exports['qb-core']:GetCoreObject()
--Consumables
CreateThread(function()
for k,v in pairs(Config.Consumables) do
for k in pairs(Config.Consumables) do
QBCore.Functions.CreateUseableItem(k, function(source, item)
TriggerClientEvent('jim-consumables:Consume', source, item.name)
end)
end
for k,v in pairs(Config.Consumables) do
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") end
if not Config.Emotes[v.emote] then print("Emote check - '"..k.."' requested emote '"..v.emote.."' - not found in config.lua") end