GetPlayerSkill

From Wiki G1R-MP G1 Remake Multiplayer
Revision as of 12:44, 4 August 2026 by QCherry (talk | contribs) (Automatyczna aktualizacja dokumentacji funkcji)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

getPlayerSkill

Checks an authoritative boolean player skill.

Syntax

bool getPlayerSkill(int playerId, string skillName)

Parameters

Name Type Required Description
playerId int yes The connected player to inspect.
skillName string yes A supported skill key.

Returns

Returns the skill state, or false when the player/key is invalid.

Examples

Check whether a player knows acrobatics:

if getPlayerSkill(playerId, "acrobatics") then
    outputChatBox("Acrobatics is enabled", playerId)
end

Notes

  • Available only in server-side resource scripts.