The Lab
PLAYER native

_GET_VEHICLE_OWNED_BY_PLAYER

returns Vehicle1 parambuild 1207

Returns the vehicle owned by player.

Signature

C
Vehicle _GET_VEHICLE_OWNED_BY_PLAYER(Player player); // 0xB9050A97594C8832 b1207

Parameters

#NameType
1playerPlayer

Facts

Facts about _GET_VEHICLE_OWNED_BY_PLAYER
Name
_GET_VEHICLE_OWNED_BY_PLAYER
Hash
0xB9050A97594C8832
Namespace
Returns
Vehicle
Game build
1207

Examples

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

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

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