Exports (API Communication)
All Functions only accessible at server side
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
exports["RocketSoccer"]:IsPlayerInQueue(source)
Remove a player from the queue
exports["RocketSoccer"]:RemovePlayerFromQueue(source, player)
Get the current round
exports["RocketSoccer"]:GetCurrentRound()
Spawn a vehicle
exports["RocketSoccer"]:CreateVehicle(model, vector)
Spawn a object
exports["RocketSoccer"]:CreateObject(model, vector)
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