GetPlayerProgression: Difference between revisions
Jump to navigation
Jump to search
Automatyczna aktualizacja dokumentacji funkcji |
Complete Lua function catalog |
||
| (One intermediate revision by the same user not shown) | |||
| Line 23: | Line 23: | ||
local progression = getPlayerProgression(playerId) | local progression = getPlayerProgression(playerId) | ||
if progression then | if progression then | ||
print("Level:", progression.level) | print("Level:", progression.stats.level) | ||
print("Guild:", progression.guild) | print("Guild:", progression.guild) | ||
end | end | ||
| Line 31: | Line 31: | ||
* 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]] | ||
[[Category:Player Functions]] | [[Category:Player Functions]] | ||
Latest revision as of 09:53, 15 August 2026
getPlayerProgression
Returns a snapshot of all authoritative progression data stored for a player.
Syntax
table getPlayerProgression(int playerId)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
playerId |
int |
yes | The connected player to inspect. |
Returns
Returns a progression table containing stats, skills and guild data, or false for an invalid player.
Examples
Inspect the full progression snapshot:
local progression = getPlayerProgression(playerId)
if progression then
print("Level:", progression.stats.level)
print("Guild:", progression.guild)
end
Notes
- Available only in server-side resource scripts.