Skip to main content
The Status system manages player needs like hunger, thirst, and stress. It provides a flexible framework for registering custom statuses with automatic ticking, visual indicators, and gameplay effects.

Overview

Access via Status (client and server-side).

Built-in Statuses

Hunger, thirst, stress pre-configured

Custom Statuses

Register your own status types

Auto-Ticking

Automatic decay over time

Visual Feedback

HUD bars with icons and colors
Dual-Sided: Status system has both client and server components. Most methods are client-side, but values sync to server.

Built-In Statuses

PLAYER_HUNGER

Hunger status that decreases over time. Low hunger causes health damage. Default Values:
  • Max: 100
  • Icon: drumstick-bite
  • Color: #ca5fe8 (purple)
  • Flash: true
Effects: Example:

PLAYER_THIRST

Thirst status that decreases over time. Low thirst disables sprint and causes ragdoll. Default Values:
  • Max: 100
  • Icon: droplet
  • Color: #07bdf0 (cyan)
  • Flash: true
Effects: Example:

PLAYER_STRESS

Stress status that increases from activities. High stress causes screen blur. Default Values:
  • Max: 100
  • Icon: brain
  • Color: #de3333 (red)
  • Flash: false
Effects: Example:
Stress Gain:
  • Shooting weapons
  • Being shot at
  • High-speed driving
  • Criminal activities
  • Near death experiences
Stress Reduction:
  • Certain items (cigarettes, drugs)
  • Safe zones (stress-free polyzones)
  • Time passage

PLAYER_DRUNK

Intoxication status from alcohol consumption. Default Values:
  • Max: 0 (inverted status)
  • Icon: champagne-glasses
  • Color: #9D4C0B (brown)
  • Flash: false
Effects:
  • Camera shake and distortion
  • Movement impairment
  • Screen effects
Example:

Status Management

Register

Register a custom status type. Parameters: Example:

GetRegistered

Get all registered statuses. Returns: Example:

Get:All

Get all status values. Returns: Example:

Get:Single

Get a specific status value. Parameters: Returns: Example:

Set:Single

Set a specific status value. Parameters: Example:
Notes:
  • Automatically syncs to server
  • Triggers HUD update
  • Fires Status:Client:Update event

Set:All

Set all statuses to a specific value. Parameters: Example:

Modify:Add

Increase a status value. Parameters: Example:

Modify:Remove

Decrease a status value. Parameters: Example:

Reset

Reset all statuses to maximum. Parameters: Example:
Notes:
  • Skips statuses with noReset option
  • Used on character spawn
  • Admin command available

Toggle

Toggle status system on/off. Parameters: Example:

Check

Check if status system is enabled. Returns: Example:

Server-Side Methods

Modify:Add (Server)

Modify status from server-side. Parameters: Example:

Events

Status:Client:Update

Triggered when status value changes. Parameters: Example:

Status:Client:updateStatus (Net Event)

Server can trigger status changes. Parameters: Example:

Status:Client:Reset (Net Event)

Admin command to reset all statuses. Example:

Food & Drink Items

Items automatically modify statuses through the inventory system.

Item Definition

Status Change Types


Integration Examples

Restaurant Script

Stress from Gunfire

Hunger/Thirst Warnings


Next Steps

HUD Exports

Main HUD control methods

Inventory Items

Creating food & drink items

Targeting System

Entity interaction system

Progress Bars

Progress bar component
Automatic Ticking: Status values automatically decrease over time. The system waits 5 minutes after spawn before starting the tick system to allow players to settle in.
Death Effects: Low hunger/thirst can kill players. Make sure food and water are accessible on your server!