self:get_type

Server

Returns the type name of the instance


Syntax

local result = self:get_type()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
string | boolresultType of the instance, or false if unavailable

Examples

Get the type of a db_query instance
local db = database.create("127.0.0.1", "root", "", "vital_sandbox")
local query = db:table("players")

engine.print("info", query:get_type()) -- 'db_query'

On this page