forked from Simnation/Main
15 lines
545 B
Lua
15 lines
545 B
Lua
![]() |
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
|