No categories assigned

LUA:SetModelType

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