fix(qs-inventory, 0r_idcard): id_card metadata + gender mapping + pcall clothing
- Fix Config.Genders: adăugat [0]=Male (QBCore folosește 0/1, nu 1/2) - Fix 0r_idcard: addItem trimite acum metadata (firstname, lastname etc) - pcall pe handleDeleteItem în RemoveItem.lua (qs-smartphone-pro compat) - Framework forțat QB, debug dezactivat
This commit is contained in:
@@ -99,7 +99,7 @@ function removeMoney(src, amount)
|
||||
return false
|
||||
end
|
||||
|
||||
function addItem(src, item, amoumt)
|
||||
function addItem(src, item, amoumt, info)
|
||||
local player = getExtendedPlayer(src)
|
||||
|
||||
while player == nil do
|
||||
@@ -108,7 +108,7 @@ function addItem(src, item, amoumt)
|
||||
end
|
||||
|
||||
if Config.Framework == "qb" then
|
||||
player.Functions.AddItem(item, amoumt)
|
||||
player.Functions.AddItem(item, amoumt, nil, info)
|
||||
elseif Config.Framework == "esx" then
|
||||
player.addInventoryItem(item, amoumt)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user