MiscClientNot in this build

getContentPropType

_GET_CONTENT_PROP_TYPE0x8BAF8AD59F47AAFC

The GTA V native _GET_CONTENT_PROP_TYPE of the MISC namespace, as LS:MP client scripts call it: the global function getContentPropType, in JavaScript and in Lua.

SignatureJavaScript
getContentPropType(model: Hash): number
SignatureLua
getContentPropType(model: Hash): integer
⚠
Not in this game build

The global exists, but the native is not part of the game build LS:MP runs: calling it does nothing and returns undefined in JavaScript, nil in Lua. It never throws. See Coverage.

Usage

JavaScript
const result = getContentPropType(model);
Lua
local result = getContentPropType(model)

Parameters

ParameterTypeJavaScriptLua
modelHashnumberinteger

Returns

int JavaScript number, Lua integer

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Returns prop type for given model hash

Reference

Namespace
Misc MISC
In the game
int _GET_CONTENT_PROP_TYPE(Hash model)
Hash
0x8BAF8AD59F47AAFC
Introduced
Game build 3095 legacy numbering

Open in the interactive natives reference