Class Fields
This document describes all configurable CLASS
fields in the codebase. Each field controls a specific aspect of how a class behaves, appears, or is granted to players. Unspecified fields will use sensible defaults.
Overview
The global CLASS
table defines per-class settings such as display name, lore, starting equipment, pay parameters, movement speeds, and visual appearance. Use these fields to fully customize each class’s behavior and presentation.
Field Summary
Field | Type | Description |
---|---|---|
name |
string |
Displayed name of the class. |
desc |
string |
Description or lore of the class. |
isDefault |
boolean |
Whether the class is available by default. |
isWhitelisted |
boolean |
Whether the class requires whitelist to join. |
faction |
number |
Linked faction index (e.g., FACTION_CITIZEN ). |
color |
Color |
UI color associated with the class. |
weapons |
string[] |
Weapons granted to members of this class. |
pay |
number |
Payment amount per interval. |
payLimit |
number |
Maximum accumulated pay. |
payTimer |
number |
Interval (seconds) between paychecks. |
limit |
number |
Maximum number of players in this class. |
health |
number |
Default starting health. |
armor |
number |
Default starting armor. |
scale |
number |
Player model scale multiplier. |
runSpeed |
number |
Default running speed. |
runSpeedMultiplier |
boolean |
Multiply base speed instead of replacing it. |
walkSpeed |
number |
Default walking speed. |
walkSpeedMultiplier |
boolean |
Multiply base walk speed instead of replacing it. |
jumpPower |
number |
Default jump power. |
jumpPowerMultiplier |
boolean |
Multiply base jump power instead of replacing it. |
bloodcolor |
number |
Blood color enumeration constant. |
bodyGroups |
table |
Bodygroup index mapping applied on spawn. |
model |
string |
Model path (or table of paths) used by this class. |
index |
number |
Unique team index assigned at registration. |
Field Details
Basic Info
name
Type: string
Description: The displayed name of the class.
Example:
CLASS.name = "Engineer"
````
#### `desc`
**Type:** `string`
**Description:** The description or lore of the class.
**Example:**
```lua
CLASS.desc = "Technicians who maintain equipment."
index
Type: number
Description: Unique numeric identifier (team index) for the class.
Example:
Affiliation & Availability
isDefault
Type: boolean
Description: Determines if the class is available to all players by default.
Example:
isWhitelisted
Type: boolean
Description: Indicates if the class requires a whitelist entry to be accessible.
Example:
faction
Type: number
Description: Links this class to a specific faction index.
Example:
color
Type: Color
Description: UI color representing the class.
Example:
Equipment & Economy
weapons
Type: string[]
Description: Weapons granted to members of this class on spawn.
Example:
pay
Type: number
Description: Payment amount issued per pay interval.
Example:
payLimit
Type: number
Description: Maximum accumulated pay a player can hold.
Example:
payTimer
Type: number
Description: Interval in seconds between salary payouts.
Example:
limit
Type: number
Description: Maximum number of players allowed in this class simultaneously.
Example:
Movement & Stats
health
Type: number
Description: Default starting health for class members.
Example:
armor
Type: number
Description: Default starting armor.
Example:
scale
Type: number
Description: Multiplier for player model size.
Example:
runSpeed
Type: number
Description: Default running speed.
Example:
runSpeedMultiplier
Type: boolean
Description: Multiply base run speed instead of replacing it.
Example:
walkSpeed
Type: number
Description: Default walking speed.
Example:
walkSpeedMultiplier
Type: boolean
Description: Multiply base walk speed instead of replacing it.
Example:
jumpPower
Type: number
Description: Default jump power.
Example:
jumpPowerMultiplier
Type: boolean
Description: Multiply base jump power instead of replacing it.
Example:
bloodcolor
Type: number
Description: Blood color enumeration constant for this class.
Example:
Appearance & Identity
bodyGroups
Type: table
Description: Mapping of bodygroup indices to values applied on spawn.
Example:
model
Type: string
or string[]
Description: Model path (or list of paths) assigned to this class.
Example: