SetPlayerGuild
Jump to navigation
Jump to search
setPlayerGuild
Sets a player's authoritative guild membership.
Syntax
bool setPlayerGuild(int playerId, string guildName)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
playerId |
int |
yes | The connected player to update. |
guildName |
string |
yes | A key returned by getPlayerGuildNames.
|
Returns
Returns true when the guild is accepted; otherwise returns false.
Examples
Assign a player to a guild:
setPlayerGuild(playerId, "old_camp")
Notes
- Available only in server-side resource scripts.