Configuration Files
1. Adjust config.lua to your server core
Adjusting the script to your server core
Config.Core = "ESX"
Config.CoreExport = function()
return exports['es_extended']:getSharedObject()
end
Adjusting the PlayerLoaded trigger from server core to the script
Config.PlayerLoaded = "esx:playerLoaded"
Adjusting the PlayerLoadedServer trigger from server core to the script
Config.PlayerLoadedServer = "esx:playerLoaded"
Adjusting the PlayerLogoutServer trigger from server core to the script
Config.PlayerLogoutServer = "esx:playerDropped"
Adjusting the JobUpdated trigger from server core to the script
Config.JobUpdated = "esx:setJob"
Adjust the Menu to your menu script
Config.Menu = 'esx_context' -- 'esx_menu_default' / 'esx_context' / 'ox_lib'
Config.ESXMenuDefault_Align = 'right'
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
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'
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
EnableGiveMembership: Allows employees to give gym memberships.
Config.EnableGiveMembership = true -- true or false
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
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
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
AutoMembershipForEmployees: Every gym employee will have a gym membership with no requirement to buy one
Config.AutoMembershipForEmployees = true -- true or false
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
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
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
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
Was this helpful?