Character

Client events that are in some way related to the character aspects.

On Character Switch

This event is triggered when a user manually attempts to switch characters from the main menu.

AddEventHandler('__WOSA:ON_CHARACTER_SWITCH', function()

end)

This event is triggered when a user loads a character.

AddEventHandler('__WOSA:ON_CHARACTER_LOAD', function()

end)

This event is triggered when a user loads his character, This is triggered a few seconds before the the original load event if you want to pre-load anything. Usually more important and needs to be triggered first of selection.

AddEventHandler('__WOSA:ON_CHARACTER_PRELOAD', function()

end)

This event is triggered when a user has created a new character.

AddEventHandler('__WOSA:ON_NEW_CHARACTER', function()

end)

On off duty

This event is triggered when a user is off duty from a job manually or forced.

It is highly recommended to use this as a handler for your off duty functions as then you will avoid forced off duties when being jailed or switching your character for example.

The job name the player is going on duty from. Will be "Civilian" if already off duty.

AddEventHandler('__WOSA:ON_OFFDUTY', function(job)

end)

Last updated

Was this helpful?