_GET_VEHICLE_TURRET_SEAT
Hash
0xFF5791B7639C2A46Runtime name
GetVehicleTurretSeatNamespaceVEHICLE
SideClient
NameCommunity guess
Docs
Since build1207
Signature
BOOL _GET_VEHICLE_TURRET_SEAT(Vehicle vehicle, int* seatIndex);Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | — |
seatIndex | int* | — |
Returns BOOL
Usage
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#
const [retval, seatIndex] = GetVehicleTurretSeat(vehicle, seatIndex);
// by hash
const [retval, seatIndex] = Citizen.invokeNative('0xFF5791B7639C2A46', vehicle, Citizen.pointerValueIntInitialized(seatIndex), Citizen.returnResultAnyway());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
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.