platform: Difference between revisions

From GTA Connected
Jump to navigation Jump to search
m (Mex moved page Platform to platform)
 
No edit summary
 
Line 1: Line 1:
{{ScriptItem
{{ScriptItem2
|endpoint = shared
|name = platform
|side = shared
|type = variable
|type = variable
|name = platform
|games = iii vc sa iv
|returnTypes = string
|desc = fetch the name of the platform
|readonly = true
|return = string a string containing the name of the platform
|usage = fetch the name of the platform
|note = Examples of a platform name read from this variable, include:<br>
|returnInfo = a string containing the name of the platform
|notes = Examples of a platform name read from this variable, include:<br>
Windows<br>
Windows<br>
Mac OS X<br>
Mac OS X<br>
Line 13: Line 12:
iOS<br>
iOS<br>
Android
Android
|readonly = true
}}
}}

Latest revision as of 20:36, 19 November 2022

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

Available since Server 1.0.0, Client 1.0.0

string platform

The platform variable is used to fetch the name of the platform.

Value

string A string containing the name of the platform.
readonly This variable cannot be changed.

Notes

  • Examples of a platform name read from this variable, include:

Windows
Mac OS X
Linux
iOS
Android.

Examples

There aren't any examples for this variable.

Compatibility

There isn't any compatibility information for this variable.

Related

Server Related

icon-iii.png icon-vc.png icon-sa.png icon-iv.png collectAllGarbage
icon-iii.png icon-vc.png icon-sa.png icon-iv.png getConsole
icon-iii.png icon-vc.png icon-sa.png icon-iv.png gta.ssvBridgeEnabled
icon-iii.png icon-vc.png icon-sa.png icon-iv.png inPoly
icon-iii.png icon-vc.png icon-sa.png icon-iv.png platform
icon-iii.png icon-vc.png icon-sa.png icon-iv.png toColour


Client Related

icon-iii.png icon-vc.png icon-sa.png icon-iv.png collectAllGarbage
icon-iii.png icon-vc.png icon-sa.png icon-iv.png debugMode
icon-iii.png icon-vc.png icon-sa.png icon-iv.png getConsole
icon-iii.png icon-vc.png icon-sa.png getRandomSkin
icon-iii.png icon-vc.png icon-sa.png icon-iv.png gta.gameSpeed
icon-iii.png icon-vc.png icon-sa.png gta.getRandomSkin
icon-iii.png gta.getSurfaceTraction
icon-iii.png icon-vc.png gta.processLineOfSight
icon-sa.png gta.setDefaultInteriors
icon-iii.png gta.setSurfaceTraction
icon-iv.png gta.setWindSpeed
icon-iii.png icon-vc.png icon-sa.png gta.showHelpBox
icon-iii.png icon-vc.png icon-sa.png icon-iv.png gta.tickCount
icon-iii.png icon-vc.png icon-sa.png icon-iv.png inPoly
icon-iii.png icon-vc.png icon-sa.png icon-iv.png platform
icon-iii.png icon-vc.png icon-sa.png icon-iv.png toColour