๐ŸšฝBasic Needs

A comprehensive needs system for FiveM servers that adds realistic player needs including sleep, bladder, and bowel movements.

Features

  • Realistic sleep system with fatigue effects

  • Bladder and bowel movement mechanics

  • Gender-specific animations and sounds

  • Customizable UI

  • Framework support for ESX and QB-Core

  • Progress bar support for multiple systems (ox_lib, mythic_progbar, esx_progressbar, qb-core)

  • Configurable effects and thresholds

  • NEW: JSON file saving for better performance on large servers

  • NEW: Option to completely disable the needs system

  • Database persistence (SQL or JSON)

Installation

  1. Download the resource

  2. Import the sql.sql file into your database (only needed if using SQL save method)

  3. Add the following to your server.cfg:

Configuration

System Settings

Framework Selection

Sleep System

Bladder System

Bowel System

UI Settings

Controls

Exports

Server Exports

Console Commands

Client Exports

Commands

Admin Commands

Player Commands

Dependencies

  • One of the following progress bar systems:

    • ox_lib

    • mythic_progbar

    • esx_progressbar

    • qb-core

  • oxmysql (only required if using SQL save method)

Performance Notes

JSON vs SQL Saving

  • JSON: Recommended for servers with 50+ players

    • Faster load/save times (1-5ms vs 50-100ms)

    • No database overhead

    • Better scalability

    • Files stored in /data/ folder

  • SQL: Traditional database saving

    • Integrated with existing database

    • Requires oxmysql dependency

    • Higher server load with many players

Disabling the System

When Config.EnableNeedsSystem = false:

  • All calculations stop

  • No data loading/saving

  • Minimal resource usage

  • Commands show disabled messages

  • Exports return safe defaults

Notes

  • The script is protected with escrow encryption

  • Client and server files are encrypted

  • Only config.lua, server/sv_functions.lua, and client/cl_main.lua are accessible for customization