Difference between revisions of "LUA:GetModelType"

(Created page with "= LUA Functions: GetModelType() = Gets the model id for the given spawn ==== Syntax ==== var = GetModelType(param1) ==== Parameters ==== ; Required - ''param1'' (Spawn) : ''p...")
 
(No difference)

Latest revision as of 17:00, 11 September 2013

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