The Lab
VEHICLE native

_GET_VEHICLE_TURRET_SEAT

returns BOOL2 paramsbuild 1207

Writes the turret seat index of vehicle into seatIndex, returning true if it has one.

Signature

C
BOOL _GET_VEHICLE_TURRET_SEAT(Vehicle vehicle, int* seatIndex); // 0xFF5791B7639C2A46 b1207

Parameters

#NameType
1vehicleVehicle
2seatIndexint* (out pointer)

Facts

Facts about _GET_VEHICLE_TURRET_SEAT
Name
_GET_VEHICLE_TURRET_SEAT
Hash
0xFF5791B7639C2A46
Namespace
Returns
BOOL
Game build
1207

Examples

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

Lua
local result, seatIndex = Citizen.InvokeNative(0xFF5791B7639C2A46, -- _GET_VEHICLE_TURRET_SEAT
  0, -- Vehicle vehicle
  Citizen.PointerValueInt(), -- int* seatIndex
  Citizen.ReturnResultAnyway()
)
if result then
  -- ...
end
JavaScript
const [result, seatIndex] = Citizen.invokeNative("0xFF5791B7639C2A46", // _GET_VEHICLE_TURRET_SEAT
  0, // Vehicle vehicle
  Citizen.pointerValueInt(), // int* seatIndex
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
var seatIndexArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0xFF5791B7639C2A46, // _GET_VEHICLE_TURRET_SEAT
  0, // Vehicle vehicle
  seatIndexArg // int* seatIndex
);
int seatIndex = seatIndexArg.GetResult<int>();
All VEHICLE natives

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