Skip to content

Commit

Permalink
v1.2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
alp1x committed Apr 30, 2023
1 parent 80eeb1a commit 65a4713
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bridge/inventory/qborlj.lua → bridge/inventory/lj.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
if GetResourceState('qb-inventory') ~= 'started' --[[or GetResourceState('lj-inventory') ~= 'started']] then return end
if GetResourceState('lj-inventory') ~= 'started' then return end

QBCore = exports['qb-core']:GetCoreObject()

Expand Down
14 changes: 14 additions & 0 deletions bridge/inventory/qb.lua
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ lua54 'yes'

name 'um-idcard'
author 'uyuyorum {um}'
version '1.2.5'
version '1.2.6'
license 'GPL-3.0 license'
repository 'https://github.com/alp1x/um-idcard'
description 'FiveM Identity Card for QBCore and ESX and QBox'
Expand Down

0 comments on commit 65a4713

Please sign in to comment.