Client Events
⚠️
These events MUST NOT be triggered by any other scripts.
Some of these events use custom types. You can learn more about those in the Types section of this resource.
Non-Networked Events
QBCore:Client:OnPlayerLoaded
Triggered when the player finishes spawning.
AddEventHandler('QBCore:Client:OnPlayerLoaded', function() end)
Networked Events
QBCore:Client:SetDuty
Triggered when the player's job duty is updated.
RegisterNetEvent('QBCore:Client:SetDuty', function(onDuty) end)
- onDuty:
boolean
QBCore:Client:OnPermissionUpdate
Triggered when the player's permissions are updated.
Only works for permissions set via Qbox.
RegisterNetEvent('QBCore:Client:OnPermissionUpdate', function() end)
qbx_core:client:playerLoggedOut
Triggered when the player logs out and no longer exists in qbx_core's memory.
RegisterNetEvent('qbx_core:client:playerLoggedOut', function() end)
QBCore:Client:OnJobUpdate
Triggered when the player's job is updated.
RegisterNetEvent('QBCore:Client:OnJobUpdate', function(job) end)
- job:
PlayerJob
QBCore:Client:OnGangUpdate
Triggered when the player's gang is updated.
RegisterNetEvent('QBCore:Client:OnGangUpdate', function(gang) end)
- gang:
PlayerGang
qbx_core:client: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
QBCore:Client: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
qbx_core:client:onSetMetaData
Triggered when player.Functions.setMetaData() is used.
RegisterNetEvent('qbx_core:client:onSetMetaData', function(key, oldValue, newValue) end)
- key:
string
- oldValue:
any
- newValue:
any