ed
This commit is contained in:
parent
9e03784b6e
commit
53578d1af6
32 changed files with 1857 additions and 0 deletions
12
resources/[tools]/um-idcard/bridge/inventory/qs.lua
Normal file
12
resources/[tools]/um-idcard/bridge/inventory/qs.lua
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue