Configuration

1. Adjust config.lua to your server core

  1. Adjusting the script to your server core

Config.Core = "ESX"
Config.CoreExport = function()
    return exports['es_extended']:getSharedObject()
end

  1. Adjusting the PlayerLoaded trigger from server core to the script

Config.PlayerLoaded = "esx:playerLoaded"

  1. Adjusting the PlayerLoadedServer trigger from server core to the script

Config.PlayerLoadedServer = "esx:playerLoaded"

  1. Adjusting the PlayerLogoutServer trigger from server core to the script

Config.PlayerLogoutServer = "esx:playerDropped"

  1. Adjusting the JobUpdated trigger from server core to the script

Config.JobUpdated = "esx:setJob"

  1. Adjust the Menu to your menu script

Config.Menu = 'esx_context' -- 'esx_menu_default' / 'esx_context' / 'ox_lib'
Config.ESXMenuDefault_Align = 'right'

  1. Adjusting GetClosestPlayersFunction to your core

Config.GetClosestPlayersFunction = function()
    local playerInArea = ESX.Game.GetPlayersInArea(GetEntityCoords(PlayerPedId()), 10.0) -- For ESX
    return playerInArea
end

2. Adjust config.lua to server preferences

Config.DistanceView = 2.25
Config.DistanceAccess = 0.5
Config.UseMarkers = true
Config.Use3DText = false
Config.UseHelpNotify = true

  1. Target: If you use a target, markers for gym activities will not be displayed - the marker will remain for the boss menu

Config.UseTarget = false
Config.TargetResource = 'ox_target'

  1. EnableMemberships: If you use in any gym the required membership, run it then it will work correctly reading memberships

Config.EnableMemberships = true -- true or false

  1. EnableGiveMembership: Allows employees to give gym memberships.

Config.EnableGiveMembership = true -- true or false

  1. EnableStrenghtModifier: In the config.client.lua file, you can modify the player's hitting power with certain power stats.

IF YOUR ANTI-CHEAT BANS FOR STRENGHT MODIFICATION YOU NEED TO SET THIS OPTION TO FALSE OR MAKE A CHANGE IN THE ANTI-CHEAT

Config.EnableStrenghtModifier = true -- true or false

  1. EnableRunSpeedModifier: In the config.client.lua file, you can modify the player's running speed with certain condition stats.

IF YOUR ANTI-CHEAT BANS FOR RUN MODIFICATION YOU NEED TO SET THIS OPTION TO FALSE OR MAKE A CHANGE IN THE ANTI-CHEAT

Config.EnableRunSpeedModifier = true -- true or false

  1. EnableStaminaModifier: In the config.client.lua file, you can modify the player's stamina level with certain condition stats.

Config.EnableStaminaModifier = true -- true or false

  1. AutoMembershipForEmployees: Every gym employee will have a gym membership with no requirement to buy one

Config.AutoMembershipForEmployees = true -- true or false

  1. UseCustomQuestionMenu: if you want to use for example vms_notify Question Menu, set it true, if you want to use Config.Menu to accept / reject of buying membership

Config.UseCustomQuestionMenu = false -- true or false

  1. UseProgressbar: If you want to use a progress-bar for the exercises you are doing, you can do so below.

Config.UseProgressbar = false -- true or false
Config.Progressbar = function(actionName, time)
    exports['progressbar']:Progress({
        name = actionName,
        label = Config.Translate[Config.Language]["progressbar."..actionName],
        duration = time,
        canCancel = false,
        controlDisables = {
            disableMouse = false,
            disableMovement = true,
            disableCarMovement = true,
            disableCombat = true,
        }
    })
end

  1. UseSkillbar: If you want to use a skill-bar for the exercises you are doing, you can do so below.

Config.UseSkillbar = false -- true or false
Config.Skillbar = function(actionName, cb)
    local finished = exports["tgiann-skillbar"]:taskBar(3000)
    cb(finished)
end

  1. StatisticsMenu:

Config.StatisticsMenu = {
    ['strenght'] = true, -- true or false
    ['condition'] = true, -- true or false
    ['shooting'] = true, -- true or false
    ['driving'] = true, -- true or false
    ['flying'] = true, -- true or false
}

Last updated