1
0
Fork 0
forked from Simnation/Main
Main/resources/[tools]/um-idcard/bridge/inventory/lj.lua
2025-08-04 05:39:52 +02:00

14 lines
545 B
Lua

if GetResourceState('lj-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