Exports (API Communication)

All Functions only accessible at server side

Good to know: You can use all functions as event or manupulation of the logic

Functions

Send a notify

exports["RocketSoccer"]:Notify(source, message)

Start a round

exports["RocketSoccer"]:StartRound(sourceOrange, sourceBlue)

Stop a round

exports["RocketSoccer"]:StopRound()

Get a player name

exports["RocketSoccer"]:GetPlayerName(source)

Check if player is allowed to join the queue

exports["RocketSoccer"]:IsPlayerAllowed(source)

Add a player to the queue

exports["RocketSoccer"]:AddPlayerToQueue(source, team, force, player)

Check if player is in the queue of a team

Remove a player from the queue

Get the current round

Spawn a vehicle

Spawn a object

Events

OnExploit

Called when trying to tune up your vehicle using the internal trigger and it is not a Rocket Soccer vehicle.

OnWinning

Called when the round ends.

Reasons:

  • Time expired

  • A team leaves the server

OnGoal

Called when a team scores a goal

Last updated