ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. getUserdataType

Function

getUserdataType

ServerMiscellaneousIdentical to MTA:SA

Tells what kind a handle is: element, lua-timer, resource-data, xml-node, text-display and others.

Syntax

string getUserdataType(userdata value)

Arguments

valueuserdata
The handle.

Returns

The kind or false.

Example

local t = setTimer(function() end, 1000, 1)
outputServerLog(getUserdataType(t)) -- lua-timer

See also