_GET_DRIVING_SEAT
Returns the seat index currently set as the driving seat for the specified vehicle vehicle: The vehicle to query.
Hash
0xE62754D09354F6CFRuntime name
GetDrivingSeatNamespaceTASK
SideClient
NameCommunity guess
Docs
Since build1207
Signature
Any _GET_DRIVING_SEAT(Any p0);Parameters
| Name | Type | Description |
|---|---|---|
p0 | Any | — |
Returns Any
Description
Returns the seat index currently set as the driving seat for the specified vehicle vehicle: The vehicle to query. Returns: Seat index (default = -1 for driver seat, custom index if changed with SET_DRIVING_SEAT)
Usage
local retval = GetDrivingSeat(p0)
-- always works, by hash
local retval = Citizen.InvokeNative(0xE62754D09354F6CF, p0, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetDrivingSeat(p0);
// by hash
const retval = Citizen.invokeNative('0xE62754D09354F6CF', p0, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xE62754D09354F6CF, p0);- 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.
See also
_SET_DRIVING_SEATSets which seat index acts as the driver seat for driving tasks
Sources
alloc8or RDR3 NativeDB · VORPCORE RDR3natives
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.