DgsGetType

From Multi Theft Auto: Wiki
Revision as of 03:57, 31 August 2017 by Thisdp (talk | contribs) (Created page with "{{Server client function}} __NOTOC__ This function is used to retrieve the type of a dgs element, an element even a string/number/bool value. ==Syntax== <syntaxhighlight lan...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function is used to retrieve the type of a dgs element, an element even a string/number/bool value.

Syntax

string dgsGetType ( mixed theMixed )  

Required Arguments

  • theMixed: What you wish to get the type of.

Returns

Returns a string containing the type, false if invalid arguments were passed.

Example

DGS = exports.dgs

label = DGS:dgsDxCreateLabel(100,100,200,50,"Test Label",false)
outputChatBox(DGS:dgsGetType(label)) -- returns "dgs-dxlabel"

outputChatBox(DGS:dgsGetType("str")) -- returns "string"

See Also