Client-Side

Client Exports

Below are all the useful exports that you can use in other resources, be sure to read their descriptions.


getSkill

Checking how much a player currently has skill

-- @param {skill_name: string}: Registered skill name for example 'condition'
local skill = exports["vms_gym"]:getSkill(skill_name)

addSkill

Add a skill value to a player by specifying the skill name and value

-- @param {skill_name: string}: Registered skill name for example 'condition'
-- @param {value: number}: Value to add for example 10.0
exports["vms_gym"]:addSkill(skill_name, value)

removeSkill

Remove the skill value to a player by specifying the skill name and value

-- @param {skill_name: string}: Registered skill name for example 'condition'
-- @param {value: number}: Value to remove for example 10.0
exports["vms_gym"]:removeSkill(skill_name, value)

openStatisticsMenu

Export to open the player statistics menu

exports["vms_gym"]:openStatisticsMenu()

Last updated