_GET_PED_IN_DRAFT_HARNESS
DRAFT_HARNESS_LR, DRAFT_HARNESS_RR, DRAFT_HARNESS_LM, DRAFT_HARNESS_RM, DRAFT_HARNESS_LF, DRAFT_HARNESS_RF, DRAFT_HARNESS_COUNT
Hash
0xA8BA0BAE0173457BRuntime name
GetPedInDraftHarnessNamespaceVEHICLE
SideClient
NameCommunity guess
Docs
Since build1207
Signature
Ped _GET_PED_IN_DRAFT_HARNESS(Vehicle vehicle, int harnessId);Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | — |
harnessId | int | — |
Returns Ped
Description
enum eDraftHarness
{
DRAFT_HARNESS_LR,
DRAFT_HARNESS_RR,
DRAFT_HARNESS_LM,
DRAFT_HARNESS_RM,
DRAFT_HARNESS_LF,
DRAFT_HARNESS_RF,
DRAFT_HARNESS_COUNT
};Usage
local retval = GetPedInDraftHarness(vehicle, harnessId)
-- always works, by hash
local retval = Citizen.InvokeNative(0xA8BA0BAE0173457B, vehicle, harnessId, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetPedInDraftHarness(vehicle, harnessId);
// by hash
const retval = Citizen.invokeNative('0xA8BA0BAE0173457B', vehicle, harnessId, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xA8BA0BAE0173457B, vehicle, harnessId);- 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.