You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are new functions to easily handle the new custom classes.
Functions
Shared
AddCustomClass(CLASS_NAME, CLASS_TABLE)
CLASS_NAME: the name of the custom class
CLASS_TABLE: the role data of the custom class (see CLASSES)
This function should never be used/called just for SERVER or CLIENT (keep it outside)!
With the help of this method, you can add custom classes simply!
Player:UpdateCustomClass(CLASS_INDEX)
This function should be used INSTEAD of Player:SetCustomClass(CLASS_INDEX)!
Player:HasCustomClass(): bool
RETURNS: bool
Check whether a player has a custom class
Player:GetClassData(): CLASS_TABLE
RETURNS: CLASS_TABLE
Returns the CLASS_TABLE of the custom class the player have.
SortRolesTable(Table)
Sort a table that just has CLASS_TABLEs inserted
GetClassByIndex(CLASS_INDEX): CLASS_TABLE
RETURNS: CLASS_TABLE
Get the CLASS_TABLE of a custom class with the help of the class index