This commit is contained in:
Nordi98 2025-08-04 05:39:52 +02:00
parent 9e03784b6e
commit 53578d1af6
32 changed files with 1857 additions and 0 deletions

View file

@ -0,0 +1,12 @@
if GetResourceState('qs-inventory') ~= 'started' then return end
local Inventory = exports['qs-inventory']
function NewMetaDataLicense(src, itemName)
local newMetaDataItem = Inventory:GetItemByName(src, itemName)
if newMetaDataItem then
local items = Inventory:GetInventory(src)
local info = items[newMetaDataItem.slot].info
info.mugShot = lib.callback.await('um-idcard:client:callBack:getMugShot', src)
Inventory:SetItemMetadata(src, newMetaDataItem.slot, info)
end
end