Player:RequestJoin
Player:RequestJoin(joinMode: string, accountGuid: Guid, playerGuid: Guid, playerName: string): bool | string
Parameters
| Name | Type | Description |
|---|---|---|
| joinMode | string | Can be player or spectator. |
| accountGuid | Guid | |
| playerGuid | Guid | |
| playerName | string |
Returns
| Type | Description |
|---|---|
| bool | string |
Example
Hooks:Install('Player:RequestJoin', 1, function(hook, joinMode, accountGuid, playerGuid, playerName)
-- Do stuff here.
end)
Last modified January 20, 2025: add possible joinModes to Player:RequestJoin (449729cf)