v1.2 - ps-buffs support / screen effect changes

This commit is contained in:
Jim Shield
2022-07-21 17:23:47 +01:00
committed by GitHub
parent b15836d42e
commit 59540d95b6
5 changed files with 187 additions and 194 deletions

View File

@@ -1,15 +1,13 @@
local QBCore = exports['qb-core']:GetCoreObject()
--Consumables
CreateThread(function()
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
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
end
end)
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
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
end