PhysicsClient

getIsEntityAFrag

GET_IS_ENTITY_A_FRAG0x0C112765300C7E1E

The GTA V native GET_IS_ENTITY_A_FRAG of the PHYSICS namespace, as LS:MP client scripts call it: the global function getIsEntityAFrag, in JavaScript and in Lua.

SignatureJavaScript
getIsEntityAFrag(object: Object): boolean
SignatureLua
getIsEntityAFrag(object: Object): boolean

Usage

JavaScript
const result = getIsEntityAFrag(object);
Lua
local result = getIsEntityAFrag(object)

Parameters

ParameterTypeJavaScriptLua
objectObjectnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Physics PHYSICS
In the game
BOOL GET_IS_ENTITY_A_FRAG(Object object)
Hash
0x0C112765300C7E1E
Introduced
Game build 505 legacy numbering
Formerly
_DOES_ENTITY_HAVE_FRAG_INST _GET_HAS_OBJECT_FRAG_INST

Open in the interactive natives reference