Script Features:
-
Interactive Gym Minigames: Players can perform various exercises using a built-in NUI minigame that includes custom animations, attachable props, and cinematic camera angles.
-
Dynamic Skill System: The script tracks core player attributes like 'Strength' and 'Condition' (stamina), saving them securely to the database.
-
Passive Stat Progression: Players naturally increase their condition by sprinting, running, or swimming, and build strength by engaging in melee combat.
-
Realistic Skill Effects: Higher strength directly increases melee weapon damage, while higher condition extends underwater breathing time and improves stamina regeneration.
-
Modern UI & Statistics Menu: Includes a clean interface where players can view their current strength, condition, shooting, and flying skills, as well as toggle progress notifications.
-
Anti-Spam Protection & Cooldowns: Features robust server-side rate limits and client-side cooldowns to prevent players from spamming minigames or abusing passive stat gains.
-
Optimized Equipment Interaction: Utilizes standard targeting systems to easily interact with gym equipment zones for a seamless workout experience.
Dependencies:
-
es_extended: The core ESX framework required for player data handling.
-
oxmysql: Used for automated database table creation and reliable SQL persistence of player skills.
-
ox_lib: Utilized for sending notifications, requesting animation dictionaries, and loading prop models.
-
ox_target: Required for creating the interaction zones around the gym equipment.