ed
This commit is contained in:
parent
9e03784b6e
commit
53578d1af6
32 changed files with 1857 additions and 0 deletions
14
resources/[tools]/um-idcard/bridge/inventory/qb.lua
Normal file
14
resources/[tools]/um-idcard/bridge/inventory/qb.lua
Normal file
|
@ -0,0 +1,14 @@
|
|||
if GetResourceState('qb-inventory') ~= 'started' then return end
|
||||
|
||||
QBCore = exports['qb-core']:GetCoreObject()
|
||||
|
||||
function NewMetaDataLicense(src, itemName)
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
if not Player then return end
|
||||
|
||||
local newMetaDataItem = Player.Functions.GetItemByName(itemName)
|
||||
if newMetaDataItem then
|
||||
Player.PlayerData.items[newMetaDataItem.slot].info.mugShot = lib.callback.await('um-idcard:client:callBack:getMugShot', src)
|
||||
Player.Functions.SetInventory(Player.PlayerData.items)
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue