ServerService Methods |
The ServerService type exposes the following members.
Name | Description | |
---|---|---|
AddPlayerClass(Int32, Vector3, Single, Weapon, Int32, Weapon, Int32, Weapon, Int32) |
Adds a class to class selection. Classes are used so players may spawn with a skin of their choice.
| |
AddPlayerClass(Int32, Int32, Vector3, Single, Weapon, Int32, Weapon, Int32, Weapon, Int32) |
Adds a class to class selection. Classes are used so players may spawn with a skin of their choice.
| |
BlockIpAddress |
Blocks an IP address from further communication with the server for a set amount of time (with wildcards allowed).
Players trying to connect to the server with a blocked IP address will receive the generic "You are banned from this
server." message. Players that are online on the specified IP before the block will timeout after specific amount of
seconds and, upon reconnect, will receive the same message. Effect takes place only when server is running (it is not
persistent).
| |
ConnectNpc |
Connect an NPC to the server.
| |
DisableInteriorEnterExits |
Disable all the interior entrances and exits in the game (the yellow arrows at doors).
| |
EnableStuntBonus |
Enables or disables stunt bonuses for all players. If enabled, players will receive monetary rewards when performing a
stunt in a vehicle (e.g. a wheelie).
| |
EnableVehicleFriendlyFire |
Enable friendly fire for team vehicles. Players will be unable to damage teammates' vehicles.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GameModeExit |
Ends the current game mode.
| |
GetConsoleVarAsBool |
Get the boolean value of a console variable.
| |
GetConsoleVarAsInt |
Gets the integer value of a console variable.
| |
GetConsoleVarAsString |
Gets the string value of a console variable.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
LimitGlobalChatRadius |
Set a radius limitation for the chat. Only players at a certain distance from the player will see their message in the
chat. Also changes the distance at which a player can see other players on the map at the same distance.
| |
LimitPlayerMarkerRadius |
Set the player marker radius.
| |
ManualVehicleEngineAndLights |
Use this function before any player connects (OnGameModeInit) to tell all clients that the script will control vehicle
engines and lights. This prevents the game automatically turning the engine on/off when players enter/exit vehicles and
headlights automatically coming on when it is dark.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
SendRconCommand |
Sends an RCON (Remote Console) command.
| |
SetGameModeText |
Set the name of the game mode which appears in the server browser.
| |
SetNameTagDrawDistance |
Set the maximum distance to display the names of players. The default draw distance is 70.0.
| |
SetTeamCount |
This function is used to change the amount of teams used in the game mode. It has no obvious way of being used, but can
help to indicate the number of teams used for better (more effective) internal handling. This function should only be
used in the OnGameModeInit callback.
| |
SetWorldTime |
Sets the world time (for all players) to a specific hour.
| |
ShowNameTags |
Shows the name tags. This function can only be used in OnGameModeInit.
| |
ShowPlayerMarkers |
Toggles player markers (blips on the radar). This function can only be used in OnGameModeInit..
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
UnBlockIpAddress |
Unblock an IP address that was previously blocked using BlockIpAddress(String, TimeSpan).
| |
UsePlayerPedAnims |
Uses standard player walking animation (animation of the CJ skin) instead of custom animations for every skin (e.g.
skating for skater skins).
|