Event
Client
Get everyone xp
PlayersXP contains everyone's XP. To access a player's or a business's XP, simply use the player's identifier (QBCore: citizenid | ESX: identifier) or the job name for businesses.
Get Player or Business XP
Identifier = (QBCore: citizenid | ESX: identifier) or the job name for businesses.
Get Player or Business Level
Identifier = (QBCore: citizenid | ESX: identifier) or the job name for businesses.
Level Up Event
Add the code above into one of your scripts to perform an action when the player or their job levels up upon crafting. Identifier = (QBCore: citizenid | ESX: identifier) or the job name for businesses. nbLevel = The number of levels gained. newLevel = The new level that you or the business has reached.
Last updated