dumbbellGym System

Purchase

Purchase this resourcearrow-up-right

Installation

circle-info

Framework compatibility

This resource is standalone and works on any FiveM server.

Compatible with ESX, QBCore, QBox, vRP, and other frameworks.

If you are using a framework other than ESX, QBCore, or QBox, follow the Standalone installation instructions.

Standalone

1

Put files in resources

Put the rtx_gym folder into your resources.

2

Configure

Open config.lua and configure it to your preferences.

3

Database

Upload sql_STANDALONE-QBCORE.sql file to your MySQL database.

4

fxmanifest.lua

Open fxmanifest.lua and edit it as shown in this screenshot: https://i.imgur.com/LWaYxz7.png — remove -- from line 11, or replace line 11 with:

'@oxmysql/lib/MySQL.lua',

5

server.cfg

Put the rtx_gym into your server.cfg.

QBCore

1

Put files in resources

Put the rtx_gym folder into your resources.

2

Configure framework

Open config.lua and replace:

Config.Framework = "standalone"

with

Config.Framework = "qbcore"

3

Configure

Configure your config.lua to your preferences.

4

Database

Upload sql_STANDALONE-QBCORE.sql file to your MySQL database.

5

fxmanifest.lua

Open fxmanifest.lua and edit it as shown in this screenshot: https://i.imgur.com/LWaYxz7.png — remove -- from line 11, or replace line 11 with:

'@oxmysql/lib/MySQL.lua',

6

server.cfg

Put the rtx_gym into your server.cfg.

7

8

Add items

9

Add new items to qb-core/shared/items.lua — items names: protein, creatine, preworkout, testosterone

10

Example items lines for items.lua:

11

['protein'] = {['name'] = 'protein', ['label'] = 'Protein', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'protein.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Protein'}, ['creatine'] = {['name'] = 'creatine', ['label'] = 'Creatine', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'creatine.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Creatine'}, ['preworkout'] = {['name'] = 'preworkout', ['label'] = 'Preworkout', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'preworkout.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Preworkout'}, ['testosterone'] = {['name'] = 'testosterone', ['label'] = 'Testosterone', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'testosterone.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Testosterone'},

ESX

1

Put files in resources

Put the rtx_gym folder into your resources.

2

Configure framework

Open config.lua and replace:

Config.Framework = "standalone"

with

Config.Framework = "esx"

3

Configure

Configure your config.lua to your preferences.

4

Database

Upload sql_ESX.sql file to your MySQL database.

5

fxmanifest.lua

Open fxmanifest.lua and edit it as shown in this screenshot: https://i.imgur.com/yoULcX4.png — remove -- from line 10, or replace line 10 with:

'@mysql-async/lib/MySQL.lua',

6

server.cfg

Put the rtx_gym into your server.cfg.

Maps

  • Los Santos GYM https://www.gta5-mods.com/maps/mlo-interior-los-santos-gym

  • Pump & Run GYM https://www.gta5-mods.com/maps/mlo-pump-run-gym-add-on-sp-fivem-ragemp

  • La Fitness https://www.youtube.com/watch?v=LXm9ix0fF4Y'

Admin commands

  • /addgymstats - example: /addgymstats 1 condition 25.0

  • /removegymstats - example: /removegymstats 1 condition 25.0

  • /statsgymclear - example: /statsgymclear 1

Exports

Server - SavePlayer


Server - AddStats


Server - RemoveStats


Server - UpdateStats


Server - GetStats


Server - GetAllStats


Client - GetStats


Client - GetAllStats

chevron-rightAnticheat Object Whitelisthashtag

The following object names should be whitelisted in your anticheat configuration:

Notes

This page contains simple installation instructions only.

More detailed instructions, exports, events and developer-related information can be found directly inside the product folder after downloading the resource from the CFX Asset Portal.

Support

If you need help with installation, configuration or have any questions regarding this resource, feel free to contact us on our Discord server:

Join our Discordarrow-up-right

Last updated