exports["RocketSoccer"]:Notify(source, message)
exports["RocketSoccer"]:StartRound(sourceOrange, sourceBlue)
exports["RocketSoccer"]:StopRound()
If the return of the function is false, the round will not stop, but if it is true, it will.
exports["RocketSoccer"]:GetPlayerName(source)
Change the return of the function to a different name (this will be displayed in the DUI)
The respective player name (Changeable by "")
exports["RocketSoccer"]:IsPlayerAllowed(source)
If true is returned, the player can be added to the respective queue.
Note that you have to add the player to the queue yourself:
queue[team][source] = true
exports["RocketSoccer"]:AddPlayerToQueue(source, team, force, player)
The return is only relevant for further processing of the function.
The actual logic is:
queue[team][source] = true / false
exports["RocketSoccer"]:IsPlayerInQueue(source)
Change the return of the function to change the logic:
true / false
exports["RocketSoccer"]:RemovePlayerFromQueue(source, player)
The following line is the deciding logic which a player removes.
Modify these lines to detect manipulation
queue.blue[source] = nil
queue.orange[source] = nil
exports["RocketSoccer"]:CreateVehicle(model, vector)
Change the following line to return a different variable on return.
This can help if there are problems with an anticheat.
return CreateVehicle(model, vector, true, false)
exports["RocketSoccer"]:CreateObject(model, vector)
Change the following line to return a different variable on return.
This can help if there are problems with an anticheat.
return CreateObject(model, vector, true, false, false)
Called when trying to tune up your vehicle using the internal trigger and it is not a Rocket Soccer vehicle.
Called when the round ends.
Reasons:
Called when a team scores a goal