CVars: Difference between revisions

From GTA Connected
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{DISPLAYTITLE:CVars}}
{{DISPLAYTITLE:CVars}}
CVars are values that affect specific game features. For example, the "Traffic" cvar will toggle the server traffic on/off, depending on the value provided. See the "Settings" section above to see how to add a cvar to a server configuration. Below is a list of built in cvars and values for each. You can also add custom cvars and access them with server.getCVar. CVars added to server config are not case sensitive.
CVars are values that affect specific game features. For example, the "Traffic" cvar will toggle the server traffic on/off, depending on the value provided. See the "Settings" section above to see how to add a cvar to a server configuration. Below is a list of built in cvars and values for each. You can also add custom cvars and access them with [[server.getCVar|server.getCVar]]. CVars added to server config are not case sensitive.


'''All CVars set in server config are sent to clients, so don't use any sensitive info in them!'''
'''All CVars set in server config are sent to clients, so don't use any sensitive info in them!'''

Revision as of 19:09, 18 March 2021

CVars are values that affect specific game features. For example, the "Traffic" cvar will toggle the server traffic on/off, depending on the value provided. See the "Settings" section above to see how to add a cvar to a server configuration. Below is a list of built in cvars and values for each. You can also add custom cvars and access them with server.getCVar. CVars added to server config are not case sensitive.

All CVars set in server config are sent to clients, so don't use any sensitive info in them!

CVar Name Type Description
Nametags boolean Enable/disable built-in nametags
GunShops boolean Enable/disable singleplayer gunshops (ammunations)
UniqueStuntJumps boolean Enable/disable the slow-motion unique jumps from singleplayer (example, the Callahan Bridge median)
StuntJumps boolean Enable/disable the bonuses provided by doing stunts (and what a great landing!)
StauntonToiletCamera boolean Force the multi-stage fixed camera used when entering the toilet in Belleville Park
Gates boolean Enable/disable the automatic singleplayer gates (example: the one at LCPD when you show up in a police car)
Trains boolean Enable/disable trains. This does not have any effect on GTA Vice City
Planes boolean Enable/disable the overhead ambience planes. The position and status of these are synced as well.
MaximumWantedLevel integer Set's the highest possible wanted level. Use 0 to disable automatic wanted levels altogether.
DefaultParkedCars boolean If enabled, spawns default parked vehicles found in singleplayer
Ambulances boolean Enables/disables the singleplayer rescue ambulances and paramedics when somebody is killed
Traffic boolean Enables/disables AI traffic. With peer2peer enabled, this will be synced with everyone.
Civilians boolean Enables/disables AI peds that walk around the city. With peer2peer enabled, this will be synced with everyone.
DefaultPickups boolean Enables/disables the default pickups found in singleplayer
SinglePlayer boolean Enables/disables general singleplayer features
IV_SkipLobby boolean (GTA IV Only) Enables/disables forcing players to skip the lobby in GTA IV when they connect
IV_AllowTrains boolean (GTA IV Only) Enables/disables allowing trains to spawn.
IV_PlayerWalking boolean (GTA IV Only) Sets whether the player walks (1) or runs (0) as normal movement.
IV_ScenarioPeds boolean (GTA IV Only) Enables/disables peds that spawn for scenarios and events.
IV_RandomCops boolean (GTA IV Only) Enables/disables spawning random police officers
IV_SPTraffic boolean (GTA IV Only) Enables/disables spawning traffic like in singleplayer
IV_SPCopModels boolean (GTA IV Only) Enables/disables using police officer skins from singleplayer