getContentPropType
_GET_CONTENT_PROP_TYPE0x8BAF8AD59F47AAFCThe 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.
getContentPropType(model: Hash): numbergetContentPropType(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
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
model | Hash | number | integer |
Returns
int JavaScript number, Lua integerNotes
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