The Lab
PLAYER native

_GET_PLAYER_OWNER_OF_VEHICLE

returns Player1 parambuild 1207

Returns the player who owns vehicle.

Signature

C
Player _GET_PLAYER_OWNER_OF_VEHICLE(Vehicle vehicle); // 0x7C803BDC8343228D b1207

Parameters

#NameType
1vehicleVehicle

Facts

Facts about _GET_PLAYER_OWNER_OF_VEHICLE
Name
_GET_PLAYER_OWNER_OF_VEHICLE
Hash
0x7C803BDC8343228D
Namespace
Returns
Player
Game build
1207

Examples

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

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

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