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:
2026-04-02 00:47:45 +03:00
parent 8cf412c266
commit a3d124dc45
3 changed files with 22 additions and 7 deletions

View File

@@ -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