Frozen Wiki
Website
  • Documentation
  • 🔹Scripts
    • Frozen Medic Job
      • Installation
      • Dependencies
      • Exports
      • State Bags
      • Customizations
      • Common Issues
        • QBCore
    • Frozen Crutch
    • Frozen Scratch Ticket
      • Installations
    • Frozen Police Job
      • Installation
      • Dependencies
      • Exports
      • State Bags
      • Events
      • Customizations
    • Frozen Inventory
      • Features
      • Examples
      • Dependencies
      • Installation
        • v1.2 installation
    • Helicopter Camera
      • Adding custom helicopters
      • Moving the UI above the minimap
      • Adding controller inputs
      • Exports
      • Events
    • Frozen Poker
      • Installation
      • Dependencies
    • Frozen Fishing
      • Installation
      • Dependencies
      • Shop Items
      • Fishing Equipment Strength
    • Frozen Gym
      • Installation
      • Exports
        • Client Exports
        • Server Exports
  • 🔓Authorization
    • How to get authorized with license system?
Powered by GitBook
On this page
  • getSkill
  • addSkill
  • removeSkill
  • Opening menu
  1. Scripts
  2. Frozen Gym
  3. Exports

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["frozen_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["frozen_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["frozen_gym"]:removeSkill(skill_name, value)

Opening menu

The script does not have an export to open the menu, but you can use the native ExecuteCommand function with the command name given in Config.StatisticsCommand (config.lua) to call the command automatically, just like a function.

ExecuteCommand('+statistics')
PreviousExportsNextServer Exports

Last updated 7 months ago

🔹