🎬
FDS Development
  • πŸ€Έβ€β™‚οΈGym Script
    • Setting up perk effects
    • Client exports
      • GetLivelloPerk
      • getEsercizio
      • GetPeso
      • OpenStats
  • πŸ“¨Post Box
    • Adding items
    • Configuration File
    • Setting up new stamps
    • Creating a New Post Box
  • ⏸️Pause Menu
  • πŸ’ΌBoss Menu
    • Installation and Configuration
    • Adding a new Boss Menu
    • esx_society and esx_addonaccount
    • Exports
      • Server
        • addMoney
        • removeMoney
        • getAccount
      • Client
        • GetBossOpen
        • GetCVOpen
        • GetApplicationsOpen
        • openCV
        • OpenBoss
        • OpenApplicationsMenuZone
  • 🏚️Ultra Motels
    • Adding a new motel
  • πŸ’²Ultra Banking
    • Installing and Setup
      • Setup Logs
    • Exports
      • Client
        • openBank
        • openAtm
      • Server
        • addAccountMoney
        • removeMoney
        • GetAccount
Powered by GitBook
On this page
  1. πŸ€Έβ€β™‚οΈGym Script

Setting up perk effects

PreviousGym ScriptNextClient exports

Last updated 1 year ago

CtrlK
RegisterNetEvent("fdsdev_gymscript:recieveData", function()
    
end)

In config.lua you can find this event. This event is triggered when a perk's level XP is updated. You can use this to configure perk actions. Example:

RegisterNetEvent("fdsdev_gymscript:recieveData", function()
    if GetLivelloPerk("terzoperk") > 1 then
        -- action
    end
end)

Theese are the perk ids that you can use with GetLivelloPerk function:

  • First perk: "forza"

  • Second perk: "resistenza"

  • Third perk: "terzoperk"