No categories assigned

LUA:GetModelType

Revision as of 17:00, 11 September 2013 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: GetModelType() = Gets the model id for the given spawn ==== Syntax ==== var = GetModelType(param1) ==== Parameters ==== ; Required - ''param1'' (Spawn) : ''p...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA Functions: GetModelType()

Gets the model id for the given spawn


Syntax

var = GetModelType(param1)


Parameters

Required - param1 (Spawn)
param1 is the spawn we want the model type for


Usage

function hailed(NPC, Spawn)
    Say(NPC, "Your model type is: " .. GetModelType(Spawn))
end

The NPC will respond with the players model type when hailed

Notes

Returns an int32