Client Events
List of useful events included with this resource, to be used on the client side.
Event Handlers
⚠️
These events should not be triggered by any other scripts.
ls-arcade:onPlayerJoinedLobby
Triggered after a player joins a lobby.
AddEventHandler('ls-arcade:onPlayerJoinedLobby', function(arenaData)
end)
- arenaData:
table
arena data table structure
ls-arcade:onPlayerLeftLobby
Triggered after a player joins a lobby.
AddEventHandler('ls-arcade:onPlayerLeftLobby', function(arenaData)
end)
- arenaData:
table
arena data table structure
ls-arcade:onPlayerLeftArena
Triggered after a player leave the arena.
Note: this is only triggered when the player leaves an active game, not the lobby.
AddEventHandler('ls-arcade:onPlayerLeftArena', function(arenaIdentifier)
end)
- arenaIdentifier:
string
ls-arcade:onArenaStarted
Triggered when a game starts
AddEventHandler('ls-arcade:onArenaStarted', function(arenaData)
end)
- arenaData:
table
arena data table structure
ls-arcade:onArenaEnded
Triggered when a game ends
AddEventHandler('ls-arcade:onArenaEnded', function(winner, arenaData)
end)
- winner:
number | string
Gamemode dependant, team based gamemode will return the team number, free for all returns the winners name - arenaData:
table
arena data table structure