RDR3 match
OBJECT::GET_CLOSEST_OBJECT_OF_TYPE
0xB6C9BC961EBC05DD ·RVA 0x04C132F0
Signature
Object GET_CLOSEST_OBJECT_OF_TYPE(
Vector3 pos,
float radius,
Hash64 modelHash,
BOOL missionScriptObject,
BOOL scriptHostObject,
BOOL networkObject
);
The scripts pass 7 values to this native; the decoded signature lists 6 (arguments the game doesn't read are left out).
Parameters 6
| # | Type | Name | Notes |
|---|---|---|---|
| 0 | Vector3 | pos |
– |
| 1 | float | radius |
– |
| 2 | Hash64 | modelHash |
RDR3 takes a Hash; GTA VI passes a 64-bit hash (the game reads 64 bits, and the scripts pass a value, not an address). |
| 3 | BOOL | missionScriptObject |
the game doesn't read it. |
| 4 | BOOL | scriptHostObject |
– |
| 5 | BOOL | networkObject |
the game doesn't read it. |
Returns
Object
Call it
// OBJECT::GET_CLOSEST_OBJECT_OF_TYPE
auto result = invoke<Object>(0xB6C9BC961EBC05DD, pos, radius, modelHash, missionScriptObject, scriptHostObject, networkObject);// OBJECT::GET_CLOSEST_OBJECT_OF_TYPE
int result = Function.Call<int>((Hash)0xB6C9BC961EBC05DD, pos, radius, modelHash, missionScriptObject, scriptHostObject, networkObject);-- OBJECT::GET_CLOSEST_OBJECT_OF_TYPE
local result = Citizen.InvokeNative(0xB6C9BC961EBC05DD, pos, radius, modelHash, missionScriptObject, scriptHostObject, networkObject)// OBJECT::GET_CLOSEST_OBJECT_OF_TYPE
const result = Citizen.invokeNative("0xB6C9BC961EBC05DD", pos, radius, modelHash, missionScriptObject, scriptHostObject, networkObject);Generic call-by-hash templates in the style of the common GTA V / RDR2 script frameworks. Adapt the types to your tooling.
Improve this page
Know what this native does, a better name, or the real parameter types? Suggest an edit. A moderator reviews every suggestion, and approved edits credit you here.