CVars: Difference between revisions

703 bytes added ,  13 April 2023
no edit summary
No edit summary
No edit summary
(9 intermediate revisions by one other user not shown)
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. Use the cvar tag in your [[ServerConfiguration|server config]] to add them. Below is a list of built in cvars and values for each. You can also add custom cvars and access any cvar 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!'''
{| class="wikitable"
{| class="wikitable"
!CVar Name
!CVar Name
Line 12: Line 14:
|GunShops
|GunShops
|boolean
|boolean
|Enable/disable singleplayer gunshops (ammunations)
|Enable/disable singleplayer gunshops/ammunations ped and camera (doesn't disable purchasing! Use "scripts" cvar for that)
|-
|-
|UniqueStuntJumps
|UniqueStuntJumps
Line 24: Line 26:
|StauntonToiletCamera
|StauntonToiletCamera
|boolean
|boolean
|Force the multi-stage fixed camera used when entering the toilet in Belleville Park
|Force the multi-stage fixed camera used when entering the toilet in Belleville Park. Only works on GTA 3
|-
|-
|Gates
|Gates
Line 52: Line 54:
|Traffic
|Traffic
|boolean
|boolean
|Enables/disables AI traffic. With peer2peer enabled, this will be synced with everyone.
|Enables/disables AI traffic that drives around the city. With <synclocalentities> enabled in server config, this will be synced with everyone.
|-
|-
|Civilians
|Civilians
|boolean
|boolean
|Enables/disables AI peds that walk around the city. With peer2peer enabled, this will be synced with everyone.
|Enables/disables AI peds that walk around the city. With <synclocalentities> enabled in server config, this will be synced with everyone.
|-
|-
|DefaultPickups
|DefaultPickups
Line 65: Line 67:
|boolean
|boolean
|Enables/disables general singleplayer features
|Enables/disables general singleplayer features
|-
|BigMap
|boolean
|Enables/disables the F11 map in GTA 3
|-
|Trainers
|boolean
|Enables/disables the use of trainers (IV Only)
|-
|Scripts
|boolean
|Enables/disables the game loading it's built-in scripts used in singleplayer
|-
|-
|IV_SkipLobby
|IV_SkipLobby
Line 93: Line 107:
|boolean
|boolean
|(GTA IV Only) Enables/disables using police officer skins from singleplayer
|(GTA IV Only) Enables/disables using police officer skins from singleplayer
|-
|IV_NetworkedObjects
|boolean
|(GTA IV Only) Enables/disables syncing of client-created objects
|-
|IV_Bulletspread
|boolean
|(GTA IV Only) If enabled, fixes weapon accuracy mechanic.
|}
|}
6,833

edits