RDR3 match
VEHICLE::GET_CLOSEST_VEHICLE
0xC9BAE7E4AD0BA2FC ·RVA 0x04A824C0
Signature
Vehicle GET_CLOSEST_VEHICLE(
Vector3 pos,
float radius,
Hash64 modelHash,
int flags
);
The scripts pass 5 values to this native; the decoded signature lists 4 (arguments the game doesn't read are left out).
Parameters 4
| # | 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 | int | flags |
– |
Returns
Vehicle
Call it
// VEHICLE::GET_CLOSEST_VEHICLE
auto result = invoke<Vehicle>(0xC9BAE7E4AD0BA2FC, pos, radius, modelHash, flags);// VEHICLE::GET_CLOSEST_VEHICLE
int result = Function.Call<int>((Hash)0xC9BAE7E4AD0BA2FC, pos, radius, modelHash, flags);-- VEHICLE::GET_CLOSEST_VEHICLE
local result = Citizen.InvokeNative(0xC9BAE7E4AD0BA2FC, pos, radius, modelHash, flags)// VEHICLE::GET_CLOSEST_VEHICLE
const result = Citizen.invokeNative("0xC9BAE7E4AD0BA2FC", pos, radius, modelHash, flags);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.