The Lab
PLAYER native

SET_PLAYER_MAY_ONLY_ENTER_THIS_VEHICLE

returns void2 paramsbuild 1207

Restricts player to entering only vehicle.

Signature

C
void SET_PLAYER_MAY_ONLY_ENTER_THIS_VEHICLE(Player player, Vehicle vehicle); // 0xDA35A134038557EC b1207

Parameters

#NameType
1playerPlayer
2vehicleVehicle

Facts

Facts about SET_PLAYER_MAY_ONLY_ENTER_THIS_VEHICLE
Name
SET_PLAYER_MAY_ONLY_ENTER_THIS_VEHICLE
Hash
0xDA35A134038557EC
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(0xDA35A134038557EC, -- SET_PLAYER_MAY_ONLY_ENTER_THIS_VEHICLE
  PlayerId(), -- Player player
  0 -- Vehicle vehicle
)
JavaScript
Citizen.invokeNative("0xDA35A134038557EC", // SET_PLAYER_MAY_ONLY_ENTER_THIS_VEHICLE
  PlayerId(), // Player player
  0 // Vehicle vehicle
);
C#
Function.Call((Hash)0xDA35A134038557EC, // SET_PLAYER_MAY_ONLY_ENTER_THIS_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.