Player
Events

Client events

ox:playerLoaded

Triggered once the player has selected a character and spawned.

AddEventHandler('ox:playerLoaded', function(data) end)

ox:playerLogout

Triggered when the player enters character selection if they were previously playing a character.

AddEventHandler('ox:playerLogout', function() end)

ox:statusTick

Triggered every 1000ms interval, when status values are updated internally.

AddEventHandler('ox:statusTick', function(statuses) end)

Networked events

ox:setGroup

Triggered when the player's grade in a group is modified on the server with player.setGroup.

RegisterNetEvent('ox:setGroup', function(group, grade) end)

ox:licenseAdded

Triggered when the player has been granted a license.

RegisterNetEvent('ox:licenseAdded', function(name) end)

ox:licenseRemoved

Triggered when the player's license is revoked.

RegisterNetEvent('ox:licenseRemoved', function(name) end)