⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Make sure to run the .sql file.
Feel free to check the config.lua & customize the options to your needs.
Config = {}
Config.ESX = 'es_extended'
-- If you have stress system integrated into esx_status, then enable to true to remove stress when doing workouts.
-- if you disable this, disable UseStress & UseStrength
Config.EnableBuiltInStatus = true
--(removes stress when working out)--
Config.UseStress = true
--(gives you strength)
Config.UseStrength = true
-- not yet implemented
--[[
function SkillExport(skill, amount)
if type == 'weights' then
exports["gamz-skillsystem"]:UpdateSkill(skill, amount)
end
if type == 'treadmills' then
exports["gamz-skillsystem"]:UpdateSkill(skill, amount)
end
if type == 'pushup' then
exports["gamz-skillsystem"]:UpdateSkill(skill, amount)
end
if type == 'chinups' then
exports["gamz-skillsystem"]:UpdateSkill(skill, amount)
end
if type == 'yoga' then
exports["gamz-skillsystem"]:UpdateSkill(skill, amount)
end
if type == 'situps' then
exports["gamz-skillsystem"]:UpdateSkill(skill, amount)
end
end
]]
Config.Locale = GetConvar('esx:locale', 'en')
Config.PedModels = {
{
Model = 'a_f_y_fitness_01',
Coords = vector3(-1255.36, -355.12, 36.01),
Heading = 307.19
},
-- LA Fitness
-- {
-- Model = 'a_f_y_fitness_02',
-- Coords = vector3(258.30, -271.67, 52.96),
-- Heading = 339.63
-- },
-- Add more peds settings as needed
}
Config.BlipSettings = {
{
Pos = {x = -1255.36, y = -355.12, z = 36.95},
Sprite = 126,
Display = 4,
Scale = 0.7,
Colour = 5,
ShortRange = true
},
-- LA Fitness
-- {
-- Pos = {x = 258.06, y = -271.57, z = 53.96},
-- Sprite = 126,
-- Display = 4,
-- Scale = 0.7,
-- Colour = 5,
-- ShortRange = true
-- },
-- Add more blip settings as needed
}
-- do you use ox_inventory? -- metadata
Config.OxInventory = false
-- free to change item name.
Config.GymMembershipItem = 'gym_membership'
Config.GymMembershipPrice = 50
Config.WaterPrice = 1
-- cooldowns (30000 = 30s)
Config.SitupsCooldown = 30000
Config.WeightsCooldown = 30000
Config.TreadmillCooldown = 30000
Config.PushupsCooldown = 30000
Config.ChinsupCooldown = 30000
Config.YogaCooldown = 30000
Config.Treadmills = {
`apa_p_apdlc_treadmill_s`
}
Config.Weights = {
`prop_weight_squat`, `prop_barbell_02`, `prop_curl_bar_01`, `prop_barbell_60kg`, `prop_weight_rack_02`
}
--if you need to add your own treadmill coordinates
Config.TreadmillsCoords = {
-- LA fitness coords
}
--if you need to add your own weight coordinates
Config.WeightsCoords = {
-- LA fitness coords
-- vec3(254.53, -268.46, 59.91),
-- vec3(238.80, -269.66, 59.91)
}
Config.Pushups = {
vec3(-1265.9210, -355.9389, 36.9596),
-- LA fitness coords
-- vec3(244.12, -262.44, 60.32),
-- vec3(246.56, -263.26, 60.32)
}
Config.Chinups = {
vec3(-1258.8064, -355.6531, 36.9596),
vec3(-1257.4302, -358.7531, 36.9596),
-- LA fitness coords
-- vec3(249.27, -268.50, 59.91),
-- vec3(250.72, -266.69, 59.91)
}
Config.Yoga = {
vec3(-1262.4193, -360.9603, 36.9948),
-- LA fitness coords
-- vec3(235.48, -267.76, 60.03),
-- vec3(234.42, -267.16, 60.03),
-- vec3(233.18, -267.16, 60.03)
}
Config.Situps = {
vec3(-1263.2308, -354.0027, 36.9596),
-- LA fitness coords
-- vec3(247.48, -260.94, 60.53),
-- vec3(244.65, -259.99, 60.53),
-- vec3(242.92, -264.84, 60.53),
-- vec3(245.74, -265.90, 60.53)
}
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Fixed prices showing up the right amount when third eyeing the ped.
Added LA Fitness Compatibility (map not included).
Added configuration to change ped coordinates & heading.
Compiled blip settings w/ blip coordinates in Config.lua
Fixed "not enough money" showing the wrong amount if you changed the price in Config.lua
Added all the notifications to locales/en.lua.
Added gym membership item to config.lua so you can change the item name.
Removed useless code (not needed).
Added ox_inventory option for Metadata support.
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯