The most common problems after installing Cuxial Gym, with the cause and fix for each.
The resource does not start
Cause. A dependency is missing or starts after the gym. Cuxial Gym needs OneSync, ox_lib, oxmysql, cuxial_bridge, ox_inventory, sleepless_interact and cuxial_gym_assets.
Fix. Enable OneSync and start the dependencies first:
ensure ox_lib
ensure oxmysql
ensure ox_inventory
ensure sleepless_interact
ensure cuxial_bridge
ensure cuxial_gym_assets
ensure cuxial_gymMachines have no training option, or the gym and its props are missing
Cause. cuxial_gym_assets is not running, was renamed, was uploaded incomplete or starts after cuxial_gym. The equipment is part of its map: without it, the script cannot find it.
Fix. Copy cuxial_gym_assets again from the package, keep its name and start it before cuxial_gym. Restart the whole server: a new map is not loaded by restarting the resource alone. With debug = true, /gymmap lists the equipment that is found.
The beach gym looks wrong or has duplicated objects
Cause. Another map resource edits the same Muscle Beach area.
Fix. Keep only one of the two maps of that area running.
The gym screen does not show the panel
Cause. The screen prop did not load because cuxial_gym_assets is not running or starts late, or the tablet.txd / tablet.texture texture does not match the prop.
Fix. Start cuxial_gym_assets before cuxial_gym and keep the tablet values as shipped. To use the panel without the physical screen, set tablet.dui = false and it opens full screen.
The machine says a membership is required
Cause. membership.required = true and the player has no active pass.
Fix. Buy the pass in the membership tab of the screen, grant it with GrantMembership from another resource, or set membership.required = false to let everyone train.
Using a drink or supplement does nothing
Cause. The item is not defined in ox_inventory, or its name differs from the one in data/supplements.lua.
Fix. Copy the entries from install/items.lua into ox_inventory/data/items.lua without renaming them and restart ox_inventory and cuxial_gym.
Max Power is consumed but the attributes do not go up
Cause. The gym_max_power entry in ox_inventory is an older copy without the server block, or it is not listed in compat.maxSkillsItems.
Fix. Paste the entry from install/items.lua again, which includes server = { export = 'cuxial_gym.MaxAllSkills' }, and check that compat.maxSkillsItems includes 'gym_max_power'.
Items show without an image in the shop
Cause. There is no image named after the item at the items.imageUrl path.
Fix. Add <item>.webp to ox_inventory/web/images/, or point items.imageUrl to your image folder. An item in the shop.items catalogue can also carry its own image.
The shop does not charge or says there is no money
Cause. The player has no balance in the shop.account or membership.account account, or that account does not exist in your framework.
Fix. Use an account name from your framework, such as 'cash' or 'bank'.
/gymadmin, /gymnivel or /gymmax do nothing
Cause. Your account lacks the admin.permission permission in the framework, or the command is disabled in commands.
Fix. Give your account the framework's admin permission, or change admin.permission to the one your staff uses. /gymadmin also needs modules.admin = true.
The set stops when the player goes down and max health changes
Cause. Your medical system marks the downed player with a state bag the gym recognises in vital, or another resource sets max health.
Fix. This is the intended behaviour: going down ends the set and the Strength health bonus is restored on getting up. If your medical system uses another state bag, add it to vital.bags and its values to vital.downValues.
I changed a data file and nothing changes in game
Cause. That section was saved at some point from /gymadmin. The database copy replaces the file.
Fix. Edit it from /gymadmin, or reset that section in the panel to go back to the file values.
Logs do not reach Discord
Cause. The convar is not set, or it is set after the gym starts.
Fix. Put set cuxial_gym_webhook "..." in server.cfg above ensure cuxial_gym. Sets are sent in batches every logs.batchMinutes minutes.
Another resource cannot find exports.CuxialGym
Cause. That resource starts before the gym.
Fix. Start cuxial_gym first. Only AddSkillToPlayer, GetPlayerSkills and MaxAllSkills are meant to be used under the CuxialGym name; for everything else use exports.cuxial_gym.
