The Lab
VEHICLE native

SET_PED_OWNS_VEHICLE

returns void2 paramsbuild 1207

Marks ped as the owner of vehicle.

Signature

C
void SET_PED_OWNS_VEHICLE(Ped ped, Vehicle vehicle); // 0x838C216C2B05A009 b1207

Parameters

#NameType
1pedPed
2vehicleVehicle

Facts

Facts about SET_PED_OWNS_VEHICLE
Name
SET_PED_OWNS_VEHICLE
Hash
0x838C216C2B05A009
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(0x838C216C2B05A009, -- SET_PED_OWNS_VEHICLE
  PlayerPedId(), -- Ped ped
  0 -- Vehicle vehicle
)
JavaScript
Citizen.invokeNative("0x838C216C2B05A009", // SET_PED_OWNS_VEHICLE
  PlayerPedId(), // Ped ped
  0 // Vehicle vehicle
);
C#
Function.Call((Hash)0x838C216C2B05A009, // SET_PED_OWNS_VEHICLE
  API.PlayerPedId(), // Ped ped
  0 // Vehicle vehicle
);
All VEHICLE natives

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