_GET_VEHICLE_TURRET_SEAT
Writes the turret seat index of vehicle into seatIndex, returning true if it has one.
Signature
BOOL _GET_VEHICLE_TURRET_SEAT(Vehicle vehicle, int* seatIndex); // 0xFF5791B7639C2A46 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | vehicle | Vehicle |
| 2 | seatIndex | int* (out pointer) |
Facts
| 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.
local result, seatIndex = Citizen.InvokeNative(0xFF5791B7639C2A46, -- _GET_VEHICLE_TURRET_SEAT
0, -- Vehicle vehicle
Citizen.PointerValueInt(), -- int* seatIndex
Citizen.ReturnResultAnyway()
)
if result then
-- ...
endconst [result, seatIndex] = Citizen.invokeNative("0xFF5791B7639C2A46", // _GET_VEHICLE_TURRET_SEAT
0, // Vehicle vehicle
Citizen.pointerValueInt(), // int* seatIndex
Citizen.returnResultAnyway()
);
if (result) {
// ...
}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>();Related VEHICLE natives
- _GET_VEHICLE_TINT
- _GET_VEHICLE_DOORS_LOCKED_FOR_TEAM
- _GET_VEHICLE_IS_PROP_SET_APPLIED
- _GET_VEHICLE_LIVERY
- _GET_VEHICLE_OWNER
- GET_LAST_PED_IN_VEHICLE_SEAT
- GET_PED_IN_VEHICLE_SEAT
- GET_VEHICLE_TRAILER_VEHICLE
- _GET_BALLOON_OBJECT_FROM_VEHICLE
- _GET_BREAKABLE_VEHICLE_LOCK_OBJECT
- _GET_BREAKABLE_VEHICLE_LOCKS_STATE
- _GET_DRAFT_VEHICLE_DESIRED_SPEED
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.