RedM Natives

_REQUEST_SCENARIO_TYPE_FOR_PED

requests a scenario type just like _REQUEST_SCENARIO_TYPE but for a specifc ped p2 is a flag unknown

Hash0xB223249B7798EEED
Runtime nameRequestScenarioTypeForPed
NamespaceSTREAMING
SideClient
NameCommunity guess
Docs
Since build1207

Signature

Any _REQUEST_SCENARIO_TYPE_FOR_PED(Any p0, Any p1, Any p2, Any p3);

Parameters

NameTypeDescription
p0Any—
p1Any—
p2Any—
p3Any—

Returns Any

Description

VORPCORE RDR3natives

requests a scenario type just like _REQUEST_SCENARIO_TYPE but for a specifc ped p2 is a flag unknown

Usage

Lua
local retval = RequestScenarioTypeForPed(p0, p1, p2, p3)

-- always works, by hash
local retval = Citizen.InvokeNative(0xB223249B7798EEED, p0, p1, p2, p3, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = RequestScenarioTypeForPed(p0, p1, p2, p3);

// by hash
const retval = Citizen.invokeNative('0xB223249B7798EEED', p0, p1, p2, p3, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xB223249B7798EEED, p0, p1, p2, p3);
  • 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.

See also

Sources

alloc8or RDR3 NativeDB · VORPCORE RDR3natives

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