HostType()
Description
Section titled âDescriptionâThe HostType Lua function returns a string with the host type of the device where the plugin is executed (for example, âConsoleâ or âonPCâ).
Arguments
Section titled âArgumentsâThis function does not accept any arguments.
- String:
The returned string is the host type of the device.
Example
Section titled âExampleâThis example prints the host type of the device in the Command Line History:
| Copy CodeLua |
| ``` |
| return function() |
Printf("The HostType is "..HostType())end