Files
red-valley/resources/[framework]/[addons]/0r_idcard
Kotzu a3d124dc45 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
2026-04-02 00:47:45 +03:00
..
2026-03-29 21:41:17 +03:00
2026-03-29 21:41:17 +03:00
2026-03-29 21:41:17 +03:00
2026-03-29 21:41:17 +03:00
2026-03-29 21:41:17 +03:00
2026-03-29 21:41:17 +03:00
2026-03-29 21:41:17 +03:00

You can check if the player has licenses like this:
local result = doesPlayerHasLicense("driver", 2)

2 is the server id of the player, and you can check for weapon or driver license

And to give player a license
setPlayerLicense(2, "weapon", 1)
2 is player id
weapon is type
1 means has license and 0 means false