Setting up perk effects

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"

Last updated