Native referenceRedM

GET_CLOSEST_OBJECT_OF_TYPE

0xE143FA2249364369 OBJECT
FUNCTION SIGNATURE
Object GET_CLOSEST_OBJECT_OF_TYPE(float x, float y, float z, float radius, Hash modelHash, BOOL isMission, BOOL p6, BOOL p7);
Property Value
Native Name GET_CLOSEST_OBJECT_OF_TYPE
Hash 0xE143FA2249364369
Return Type Object
Build 1207
Parameters x (float), y (float), z (float), radius (float), modelHash (Hash), isMission (BOOL), p6 (BOOL), p7 (BOOL)

Description: this native is broken it makes the local objects you check to be networked?? the last parameters also don't matter if they are all true or false networked or not it will find the object bScriptedHosted or not it will find the object, use this only for networked objects until it's fixed

Usage

Lua (Direct):

local result = GetClosestObjectOfType(x, y, z, radius, modelHash, isMission, p6, p7)

Lua (Hash):

local result = Citizen.InvokeNative(0xE143FA2249364369, x, y, z, radius, modelHash, isMission, p6, p7)
Back to OBJECT