GetPlayerGuild: 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 30: Line 30:
* 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:52, 15 August 2026

getPlayerGuild

Returns a player's authoritative guild key.

Syntax

string getPlayerGuild(int playerId)

Parameters

Name Type Required Description
playerId int yes The connected player to inspect.

Returns

Returns the guild key, or false if the player is invalid.

Examples

Display a player's guild:

local guild = getPlayerGuild(playerId)
if guild then
    outputChatBox("Guild: " .. guild, playerId)
end

Notes

  • Available only in server-side resource scripts.