SetPlayerXPRate
Gives one player an XP rate of their own, over the server-wide one.
The same multiplier as SetXPRate, for this player alone: 0 .. 100. nil takes the override away and the player
follows the server-wide rate again. It lasts until the player leaves.
Syntax
Section titled “Syntax”SetPlayerXPRate(pid, rate)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
rate |
number | nil | 0 .. 100; nil = follow the server-wide rate |
Returns
Section titled “Returns”boolean - false for a rate outside 0..100, or a player not connected
Example
Section titled “Example”-- a newcomer learns at double speed until they are at home in the worldSetPlayerXPRate(pid, 2)-- ... and later, when the week is over:SetPlayerXPRate(pid, nil)See also
Section titled “See also”GetPlayerXPRate · SetXPRate · OnPlayerGainXP · the Stats, skills, XP and perks group of the index
