Server Exports

This page lists all the available server-side events and export

Add Player Statistic

Use following export to Add Player Statistic

local playerId = 2
local stat = 'strength'
local amount = 3.0

exports['xnr-gym']:AddStatistic(playerId, stat, amount)

Remove Player Statistic

Use following export to Remove Player Statistic

local playerId = 10
local stat = 'strength'
local amount = 1.0

exports['xnr-gym']:RemoveStatistic(playerId, stat, amount)

Set Player Statistic

Use following export to Set Player Statistic

local playerId = 10
local stat = 'strength'
local amount = 50.0

exports['xnr-gym']:SetStatistic(playerId, stat, amount)

Last updated