|Hook name||canChangeJob(Player ply, string job)|
|Whether a player can change their job. NOTE: This is only for the /job comand! The hook for changing to a pre-existing job is playerCanChangeTeam.|
|Returns:||boolean canChangeJob, string message, string replace|
|BBCode Link:||[b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/canChangeJob]canChangeJob hook[/url][/b]|
- ply (Player)
- job (string)
The player whom is to change their job.
The job name (what the player entered in the /job command).
- canChangeJob (boolean)
- message (string)
- replace (string)
Whether the player can change their job name (doesn't change their team).
The message to show when the player cannot take the job. Only useful when canChangeJob is false.
A replacement for the job name. Only useful when canChangeJob is true.