GetPlayerStatNames: Difference between revisions

From Wiki G1R-MP G1 Remake Multiplayer
Jump to navigation Jump to search
Automatyczna aktualizacja dokumentacji funkcji
 
Complete Lua function catalog
 
Line 25: Line 25:
* Available only in server-side resource scripts.
* Available only in server-side resource scripts.


[[Category:Lua Functions]]
[[Category:Server Functions]]
[[Category:Server Functions]]
[[Category:Progression Functions]]
[[Category:Progression Functions]]

Latest revision as of 09:53, 15 August 2026

getPlayerStatNames

Returns the supported progression stat keys known by the server progression system.

Syntax

table getPlayerStatNames()

Parameters

This function does not accept parameters.

Returns

Returns a 1-indexed array of stat key strings.

Examples

Print every available stat key:

for _, statName in ipairs(getPlayerStatNames()) do
    print(statName)
end

Notes

  • Available only in server-side resource scripts.