📖
AdminPlus Development Documentation
  • AdminPlus Documentation
  • Support
  • 📍Information
    • You lack the required entitlement.
  • 💰Paid Scripts
    • [QB/ESX] Admin Jail [PAID]
    • [QB/ESX] Wigs & Bundles [PAID]
    • [QB/ESX] Bus Travel [PAID]
    • [QB/ESX] Business Promotion [PAID]
    • [QB/QBOX/ESX] Discord Presence [PAID]
    • [QB/ESX] Character Attributes [PAID]
    • [QB/ESX] Server Essentials [PAID]
    • [QB/ESX] Typing Indicator [PAID]
    • [QB/ESX] Anti-Fall [FREE]
    • ESX | Faction Chat [PAID]
    • ESX | Gym [PAID]
    • [STANDALONE] 65+ Car Pack [PAID]
  • 🆓Free Scripts
    • Anti Collision
    • Lost Items
    • Sell Drugs
    • Med System
Powered by GitBook
On this page
  1. Paid Scripts

ESX | Gym [PAID]

PreviousESX | Faction Chat [PAID]Next[STANDALONE] 65+ Car Pack [PAID]

Last updated 3 months ago

This script is a working gym script with the requirement of a Membership card to be able to work out with many exercises that consist of:

  • Weights, Treadmills, Pushups, Chinups, Yoga & Situps.

  • Stress toggle.

  • Strength toggle.

  • Ped Model & coordinates/heading.

  • Blip settings (coords/sprite/scale/display/color/shortrange).

  • Gym Membership & cost prices.

  • Water & cost prices.

  • Option to add your own coordinates/prop name for each workout, if you have custom ones.

/stats

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
  • This resource is drag/drop. You will just need to add the following inside of your server.cfg after you've dropped the file into your resources.

ensure adminplus-gym

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)
}
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
V 1.0.1
  • Original Release

V 1.0.2

Fixed prices showing up the right amount when third eyeing the ped.

Added LA Fitness Compatibility (map not included).

V 1.0.3

Cleaned up code

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

V 1.0.4

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).

V 1.0.5

Added ox_inventory option for Metadata support.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯

ALL gyms including:

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯

(pre-configured)

(pre-configured)

💰
LA Fitness MLO
Muscle Gym MLO
Pump & Run MLO
Forums Post
Showcase (video)
Tebex (purchase)
Support (discord)