The Lab
PLAYER native

_SET_PLAYER_OWNS_VEHICLE

returns void2 paramsbuild 1207

Sets vehicle as owned by player.

Signature

C
void _SET_PLAYER_OWNS_VEHICLE(Player player, Vehicle vehicle); // 0xD0E02AA618020D17 b1207

Parameters

#NameType
1playerPlayer
2vehicleVehicle

Facts

Facts about _SET_PLAYER_OWNS_VEHICLE
Name
_SET_PLAYER_OWNS_VEHICLE
Hash
0xD0E02AA618020D17
Namespace
Returns
void
Game build
1207

Examples

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

Lua
Citizen.InvokeNative(0xD0E02AA618020D17, -- _SET_PLAYER_OWNS_VEHICLE
  PlayerId(), -- Player player
  0 -- Vehicle vehicle
)
JavaScript
Citizen.invokeNative("0xD0E02AA618020D17", // _SET_PLAYER_OWNS_VEHICLE
  PlayerId(), // Player player
  0 // Vehicle vehicle
);
C#
Function.Call((Hash)0xD0E02AA618020D17, // _SET_PLAYER_OWNS_VEHICLE
  API.PlayerId(), // Player player
  0 // Vehicle vehicle
);
All PLAYER natives

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