No categories assigned

LUA:GetModelType

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