Cuxial Gym ships as two folders, needs seven inventory items and creates its database tables on first start.
Check the dependencies
These resources must be installed and running before you add the gym:
- OneSync enabled on the server
ox_liboxmysqlcuxial_bridge2.26.0 or later, with your frameworkox_inventorysleepless_interact
Copy the resources
Place both folders inside your resources directory. Do not rename them.
cuxial_gymcuxial_gym_assets
cuxial_gym_assets contains the gym map, props, animations and sounds.
Cuxial Gym also takes the resource name CuxialGym. No other resource with that name can run at the same time.
cuxial_gym_assets replaces the map of the Muscle Beach area. If you run another map in that area, keep only one of them.
Add the items
Copy the seven entries from install/items.lua into ox_inventory/data/items.lua:
gym_hydration_station, gym_bull_rage, gym_recovery, gym_shake_it_off, gym_boom_preworkout, gym_mass_gainer and gym_max_power.
['gym_hydration_station'] = {
label = 'Hydration Station',
weight = 1000,
stack = true,
close = true,
description = 'Isotonic water. -10% fatigue for 45 minutes',
},The first six need no client or server block: the gym registers them as usable on start.
All seven items come ready in install/items.lua; gym_max_power already carries the server block that uses the gym export, so nothing needs to be added by hand.
Add one image per item, named after the item, in ox_inventory/web/images/<item>.webp. If your images live elsewhere, change the path in items.imageUrl.
Set the convars
All of them are optional.
# Language (en and es included)
setr ox:locale "en"
# Discord webhook for the gym logs
set cuxial_gym_webhook "https://discord.com/api/webhooks/..."
# Debug traces in the console
setr cuxial_gym_debug "0"The webhook goes in server.cfg, never in shared/config.lua. The convar name is set in logs.convar.
Give staff access
The /gymadmin panel and the staff commands use your framework's admin permission, through cuxial_bridge. No ACE is needed. To use another permission, change admin.permission.
Start the resources
Start the assets before the gym, and both after their dependencies and your framework:
ensure ox_lib
ensure oxmysql
# your framework here
ensure ox_inventory
ensure sleepless_interact
ensure cuxial_bridge
ensure cuxial_gym_assets
ensure cuxial_gymThere is no SQL to run. The resource creates its three tables (cuxial_gym_settings, cuxial_gym_players and cuxial_gym_audit) on start; install/cuxial_gym.sql is only a reference.
cuxial_gym_assets adds a map and data files: the first time, restart the whole server, not just the resource.
Check that it works
- Go to the Muscle Beach gym: it has its own blip on the map.
- Use the Gym Menu option on the gym screen. The panel is drawn on the screen; buy the membership from its tab.
- Interact with a machine and pick an exercise. The minigame appears; press X to leave the set.
- Run
/gymadminwith a staff account. The settings panel opens.
Next: learn how each part is used in the Features guide, or tune the script in Configuration.
