[PAID][ESX] Training | MK-Services

A script by Pain1435

No reviews yet.
[PAID][ESX] Training | MK-Services main image

Full Description

This resource is compatible with ESX v1.1 / ESX 1.2 (v1 Final) / ESX Legacy (v1.3 - v1.5)/ Extendedmode.

Your Players want to gain more stamina or more strength? Here you go!

Features

  • Fully configurable Gyms
  • Configurable Training Spots for each Gym
  • Fancy UI for Skill Overview
  • Database storage for skills
  • Easy addable new gym exercises
  • Exercises like running, bicep curls, pushups, yoga …
  • Adjustable notification event
  • ESX events and prefix customizable
  • Low performance consumption (0.03ms - 0.05ms)

Showcase: Click me
Buy: Click me (Secured by FiveM Escrow System)

Config Snippets:

MK = MK or {}

-- By default 'en' and 'de' are supported.
-- You can modify or add new translations in the translations.lua file
MK.Language = 'en'

MK.ESXSharedObject = 'esx:getSharedObject'

MK.Notify = function(type, message)
  if type == 'success' then
      TriggerEvent('esx:showNotification', message)
  elseif type == 'warning' then
      TriggerEvent('esx:showNotification', message)
  elseif type == 'error' then
      TriggerEvent('esx:showNotification', message)
  elseif type == 'info' then
      TriggerEvent('esx:showNotification', message)
  end
end


MK.Gym = {
    ["Gym Beach"] = {
        location = { x = -1202.544, y = -1570.672, z = 4.607985, h = 116.97354 } ,
        trainingspots = {
            { 
                type = "info",
                location = { x = -1195.593, y = -1577.593, z = 4.6094398, h = 298.94131 },
                inUse = false
            },
            { 
                type = "situps",
                location = { x = -1202.544, y = -1570.672, z = 4.607985, h = 116.97354 },
                inUse = false
            },
            { 
                type = "chins",
                location = { x = -1200.028, y = -1571.006, z = 4.6097102, h = 214.79168 },
                inUse = false
            },
            { 
                type = "arms",
                location =  { x = -1202.366, y = -1565.923, z = 4.6118025, h = 34.530456 },
                inUse = false
            },
            { 
                type = "chins",
                location = { x = -1204.79, y = -1564.36, z = 4.609487, h = 32.665088 },
                inUse = false
            },
            { 
                type = "arms",
                location =  { x = -1210.243, y = -1561.317, z = 4.607984, h = 76.425018 },
                inUse = false
            },

           
            
        }
    },



    ["Gym Mansion"] = {
        location = { x = -3222.281, y = 794.22882, z = 14.082267, h = 305.10269 } ,
        trainingspots = {
            { 
                type = "info",
                location =  { x = -3222.281, y = 794.22882, z = 14.082267, h = 305.10269 },
                inUse = false
            },
            { 
                type = "situps",
                location = { x = -3220.928, y = 790.18377, z = 14.082277, h = 122.84686 },
                inUse = false
            },
            { 
                type = "arms",
                location = { x = -3220.372, y = 788.2005, z = 14.091181, h = 209.77847 },
                inUse = false
            },
            { 
                type = "chins",
                location =   { x = -3225.021, y = 789.26379, z = 14.082275, h = 119.34291 },
                inUse = false
            },

            { 
                type = "jog",
                location =   { x = -3225.481, y = 794.69464, z = 14.223058, h = 119.88745 },
                inUse = false
            },

            { 
                type = "jog",
                location =   { x = -3224.543, y = 792.99487, z = 14.225777, h = 123.2485 },
                inUse = false
            },

            
            

           
           
            
        }
    },
}


MK.Exercises = {
    ["situps"] = {
        scenario = "world_human_sit_ups",
        skills = {
            "Strength",
            "Lung Capacity",
            "Stamina",
        }
    },
    ["arms"] = {
        scenario = "world_human_muscle_free_weights",
        skills = {
            "Strength",
            "Lung Capacity",
            "Stamina",
        }
    },
    ["chins"] = {
        scenario = "prop_human_muscle_chin_ups",
        skills = {
            "Strength",
            "Lung Capacity",
            "Stamina",
        }
    },
    ["pushup"] = {
        scenario = "world_human_push_ups",
        skills = {
            "Strength",
            "Lung Capacity",
        }
    },
    ["yoga"] = {
        scenario = "world_human_yoga",
        skills = {
            "Lung Capacity",
            "Stamina",
        }
    },
    ["jog"] = {
        scenario = "WORLD_HUMAN_JOG_STANDING",
        skills = {
            "Lung Capacity",
            "Stamina",
        }
    }
}

Code is accessible No
Subscription-based No
Lines (approximately) LUA: ~680 UI: ~200
Requirements ESX
Support Yes