gta.ivGamemode: Difference between revisions

From GTA Connected
Jump to navigation Jump to search
(Created page with "{{ScriptItem |endpoint = client |type = variable |name = gta.ivGamemode |usage = fetch the current IV gamemode that the client is playing |readonly = true |returnTypes = int |...")
 
No edit summary
 
Line 8: Line 8:
|returnInfo = an integer, representing the current gamemode for GTA IV/EFLC
|returnInfo = an integer, representing the current gamemode for GTA IV/EFLC
|notes = This only works when connected to multiplayer. Using it while not connected will show -1.
|notes = This only works when connected to multiplayer. Using it while not connected will show -1.
A list of gamemodes can be found on the [[Resources/GTAIV/Gamemodes|gamemodespage]]
A list of gamemodes can be found on the [[Resources/GTAIV/GameModes|gamemodes page]]
}}
}}

Latest revision as of 21:04, 8 February 2021

Variable Client Only icon-iii.png icon-vc.png icon-sa.png icon-iv.png Online and Offline Read-Only

Available since Client 1.0.0

int gta.ivGamemode

The gta.ivGamemode variable is used to fetch the current IV gamemode that the client is playing.

Value

int An integer, representing the current gamemode for GTA IV/EFLC.
readonly This variable cannot be changed.

Notes

  • This only works when connected to multiplayer. Using it while not connected will show -1.A list of gamemodes can be found on the gamemodes page.

Examples

There aren't any examples for this variable.

Compatibility

There isn't any compatibility information for this variable.