ObjectClient

hasObjectBeenBroken

HAS_OBJECT_BEEN_BROKEN0x8ABFB70C49CC43E2

The GTA V native HAS_OBJECT_BEEN_BROKEN of the OBJECT namespace, as LS:MP client scripts call it: the global function hasObjectBeenBroken, in JavaScript and in Lua.

SignatureJavaScript
hasObjectBeenBroken(object: Object, p1: any): boolean
SignatureLua
hasObjectBeenBroken(object: Object, p1: any): boolean

Usage

JavaScript
const result = hasObjectBeenBroken(object, p1);
Lua
local result = hasObjectBeenBroken(object, p1)

Parameters

ParameterTypeJavaScriptLua
objectObjectnumberinteger
p1Anyanyany

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Object OBJECT
In the game
BOOL HAS_OBJECT_BEEN_BROKEN(Object object, Any p1)
Hash
0x8ABFB70C49CC43E2

Open in the interactive natives reference