CanPlayerJoinClass

GM:CanPlayerJoinClass(client, class, classData)

Description
This function returns whether the player can join the specific class or not

Arguments

 * Player client
 * Integer class
 * Table classData

Return Values
Can player join the specific class?
 * Boolean

Examples
For example we can use this plugin to deny player to classes if they have less than 1000 currency. function PLUGIN:CanPlayerJoinClass( client, class, classData ) --If the class is default we do not want to block it from being denied if classData.isDefault then return end local char = client:getChar local money = char:getMoney if money < 1000 then return false end end