RedM Natives

_GET_VEHICLE_TURRET_SEAT

Hash0xFF5791B7639C2A46
Runtime nameGetVehicleTurretSeat
NamespaceVEHICLE
SideClient
NameCommunity guess
Docs
Since build1207

Signature

BOOL _GET_VEHICLE_TURRET_SEAT(Vehicle vehicle, int* seatIndex);

Parameters

NameTypeDescription
vehicleVehicle—
seatIndexint*—

Returns BOOL

Usage

Lua
local retval, seatIndex = GetVehicleTurretSeat(vehicle, seatIndex)

-- always works, by hash
local retval, seatIndex = Citizen.InvokeNative(0xFF5791B7639C2A46, vehicle, Citizen.PointerValueIntInitialized(seatIndex), Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const [retval, seatIndex] = GetVehicleTurretSeat(vehicle, seatIndex);

// by hash
const [retval, seatIndex] = Citizen.invokeNative('0xFF5791B7639C2A46', vehicle, Citizen.pointerValueIntInitialized(seatIndex), Citizen.returnResultAnyway());
C#
var seatIndex = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0xFF5791B7639C2A46, vehicle, seatIndex);
// seatIndex.GetResult<int>()
  • The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.