CanPlayerJoinClass
GM:CanPlayerJoinClass(client, class, classData)
Description[edit]
This function returns whether the player can join the specific class or not
Arguments[edit]
- Player client
- Integer class
- Table classData
Return Values[edit]
- Boolean
Can player join the specific class?
Examples[edit]
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