ObjectClient

doesRayfireMapObjectExist

DOES_RAYFIRE_MAP_OBJECT_EXIST0x52AF537A0C5B8AAD

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
objectObjectnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Notes

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

Returns true if a destructible object with this handle exists, false otherwise.

Reference

Namespace
Object OBJECT
In the game
BOOL DOES_RAYFIRE_MAP_OBJECT_EXIST(Object object)
Hash
0x52AF537A0C5B8AAD
Formerly
_DOES_DES_OBJECT_EXIST

Open in the interactive natives reference