# HostType()

Source: https://help.malighting.com/grandMA3/2.3/HTML/lua_objectfree_hosttype.html
This is grandocs, an unofficial mirror of MA Lighting documentation. For authoritative or safety-relevant information, cite the canonical page on help.malighting.com.

---
## 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

This function does not accept any arguments.

## Return

- **String**:\
  The returned string is the host type of the device.

## Example

This example prints the host type of the device in the Command Line History:

|                                                                          |
| ------------------------------------------------------------------------ |
| [Copy Code](javascript:void\(0\))Lua                                     |
| ```
return function()
    Printf("The HostType is "..HostType())
end
``` |