The Lab
VEHICLE native

_GET_VEHICLE_OWNER

returns Entity1 parambuild 1207

Returns the entity that owns vehicle.

Signature

C
Entity _GET_VEHICLE_OWNER(Vehicle vehicle); // 0xB729679356A889AE b1207

Parameters

#NameType
1vehicleVehicle

Facts

Facts about _GET_VEHICLE_OWNER
Name
_GET_VEHICLE_OWNER
Hash
0xB729679356A889AE
Namespace
Returns
Entity
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local entity = Citizen.InvokeNative(0xB729679356A889AE, -- _GET_VEHICLE_OWNER
  0, -- Vehicle vehicle
  Citizen.ResultAsInteger()
)
print(entity)
JavaScript
const entity = Citizen.invokeNative("0xB729679356A889AE", // _GET_VEHICLE_OWNER
  0, // Vehicle vehicle
  Citizen.resultAsInteger()
);
console.log(entity)
C#
int entity = Function.Call<int>((Hash)0xB729679356A889AE, // _GET_VEHICLE_OWNER
  0 // Vehicle vehicle
);
All VEHICLE natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.