GetPlayerXPRate
The XP rate that applies to a player.
Syntax
Section titled “Syntax”GetPlayerXPRate(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
Returns
Section titled “Returns”number - the player’s own rate, else the server-wide one; 0 for a player not connected
Example
Section titled “Example”SendClientMessage(pid, COLOR_WHITE, string.format("Your XP rate is %g.", GetPlayerXPRate(pid)))See also
Section titled “See also”SetPlayerXPRate · GetXPRate · the Stats, skills, XP and perks group of the index
