sdl.platform: Difference between revisions

From GTA Connected
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
{{ScriptItem
{{ScriptItem2
|endpoint = shared
|name = sdl.platform
|side = shared
|type = variable
|type = variable
|name = sdl.platform
|games = iii vc sa iv
|returnTypes = string
|desc = fetch the platform
|readonly = true
|return = string a string representing the platform
|usage = fetch the platform
|note = [https://wiki.libsdl.org/SDL_GetPlatform View this function on the SDL Manual]<br>
|returnInfo = a string representing the platform
|notes = [https://wiki.libsdl.org/SDL_GetPlatform View this function on the SDL Manual]<br>
Examples of a platform name returned, include:
Examples of a platform name returned, include:
* Windows
* Windows
Line 14: Line 13:
* iOS
* iOS
* 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 sdl.platform

The sdl.platform variable is used to fetch the platform.

Value

string A string representing the platform.
readonly This variable cannot be changed.

Notes

Examples of a platform name returned, 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.