platform: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 1: | Line 1: | ||
{{ | {{ScriptItem2 | ||
| | |name = platform | ||
|side = shared | |||
|type = variable | |type = variable | ||
| | |games = iii vc sa iv | ||
|desc = fetch the name of the platform | |||
| | |return = string a string containing the name of the platform | ||
|note = 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
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
collectAllGarbage
getConsole
gta.ssvBridgeEnabled
inPoly
platform
toColour
Client Related
collectAllGarbage
debugMode
getConsole
getRandomSkin
gta.gameSpeed
gta.getRandomSkin
gta.getSurfaceTraction
gta.processLineOfSight
gta.setDefaultInteriors
gta.setSurfaceTraction
gta.setWindSpeed
gta.showHelpBox
gta.tickCount
inPoly
platform
toColour