No categories assigned

LUA:SetModelType

Revision as of 11:58, 12 September 2013 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: SetModelType() = Sets the model of the given spawn ==== Syntax ==== SetModelType(param1, param2) ==== Parameters ==== ; Required - ''param1'' (Spawn), ''para...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA Functions: SetModelType()

Sets the model of the given spawn


Syntax

SetModelType(param1, param2)


Parameters

Required - param1 (Spawn), param2 (int16)
param1 is the spawn we want to modify
param2 is the id of the model we want to set it to


Usage

function hailed(NPC, Spawn)
    SetModelType(Spawn, 55)
end

NPC will change the players model to 55 when hailed