Difference between revisions of "LUA:SetModelType"
(Created page with "= LUA Functions: SetModelType() = Sets the model of the given spawn ==== Syntax ==== SetModelType(param1, param2) ==== Parameters ==== ; Required - ''param1'' (Spawn), ''para...") |
(No difference)
|
Latest revision as of 11:58, 12 September 2013
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