Client Events
:::warning These events MUST NOT be triggered by any other scripts. :::
:::info Some of these events use custom types. You can learn more about those in the Types section of this resource. :::
Non-Networked Events > OnPlayerLoaded
Triggered when the player finishes spawning.
AddEventHandler('QBCore:Client:OnPlayerLoaded', function() end)
Networked Events > SetDuty
Triggered when the player's job duty is updated.
RegisterNetEvent('QBCore:Client:SetDuty', function(onDuty) end)
- onDuty:
boolean
Networked Events > OnPermissionUpdate
Triggered when the player's permissions are updated.
Only works for permissions set via Qbox.
RegisterNetEvent('QBCore:Client:OnPermissionUpdate', function() end)
Networked Events > playerLoggedOut
Triggered when the player logs out and no longer exists in qbx_core's memory.
RegisterNetEvent('qbx_core:client:playerLoggedOut', function() end)
Networked Events > OnJobUpdate
Triggered when the player's job is updated.
RegisterNetEvent('QBCore:Client:OnJobUpdate', function(job) end)
- job:
PlayerJob
Networked Events > OnGangUpdate
Triggered when the player's gang is updated.
RegisterNetEvent('QBCore:Client:OnGangUpdate', function(gang) end)
- gang:
PlayerGang
Networked Events > onGroupUpdate
Triggered when the player's groups are updated. If grade is nil then group was removed otherwise group was added
RegisterNetEvent('qbx_core:client:onGroupUpdate', function(groupName, groupGrade) end)
- groupName:
string - groupGrade?:
number
Networked Events > OnMoneyChange
Triggered when the player's cash/bank balance is updated.
RegisterNetEvent('QBCore:Client:OnMoneyChange', function(moneytype, amount, operation, reason) end)
- moneyType:
'cash' | 'bank' | 'crypto' - amount:
number - operation:
'add' | 'remove' | 'set' - reason:
string
Networked Events > onSetMetaData
Triggered when player.Functions.setMetaData() is used.
RegisterNetEvent('qbx_core:client:onSetMetaData', function(key, oldValue, newValue) end)
- key:
string - oldValue:
any - newValue:
any