Player
Events

Server events

ox:playerLoaded

Triggered after a player has selected a character.

AddEventHandler('ox:playerLoaded', function(source, userid, charid) end)

ox:setGroup

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

AddEventHandler('ox:setGroup', function(source, group, grade) end)

ox:playerLogout

Triggered when a player logs out from their current character or disconnects from the server.

AddEventHandler('ox:playerLogout', function(source, userid, charid) end)

ox:characterDeleted

Triggered when a player has deleted a character.

AddEventHandler('ox:characterDeleted', function(source, userid, charid) end)

ox:licenseAdded

Triggered when a player has been granted a license.

AddEventHandler('ox:licenseAdded', function(source, name) end)

ox:licenseRemoved

Triggered when a player's license is revoked.

AddEventHandler('ox:licenseRemoved', function(source, name) end)

Networked events

ox:playerDeath

Triggered on player death and revival.

RegisterNetEvent('ox:playerDeath', function(isDead) end)

ox:setPlayerInService

Can be triggered to set a player as "in service" for a specific group they are a member of.

RegisterNetEvent('ox:setPlayerInService', function(group) end)