_REQUEST_SCENARIO_TYPE_FOR_PED
requests a scenario type just like _REQUEST_SCENARIO_TYPE but for a specifc ped p2 is a flag unknown
Hash
0xB223249B7798EEEDRuntime name
RequestScenarioTypeForPedNamespaceSTREAMING
SideClient
NameCommunity guess
Docs
Since build1207
Signature
Any _REQUEST_SCENARIO_TYPE_FOR_PED(Any p0, Any p1, Any p2, Any p3);Parameters
| Name | Type | Description |
|---|---|---|
p0 | Any | — |
p1 | Any | — |
p2 | Any | — |
p3 | Any | — |
Returns Any
Description
requests a scenario type just like _REQUEST_SCENARIO_TYPE but for a specifc ped p2 is a flag unknown
Usage
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#
const retval = RequestScenarioTypeForPed(p0, p1, p2, p3);
// by hash
const retval = Citizen.invokeNative('0xB223249B7798EEED', p0, p1, p2, p3, Citizen.returnResultAnyway(), Citizen.resultAsInteger());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
InvokeNativewith the hash — it always works.
See also
_REMOVE_SCENARIO_TYPE_FOR_PEDremoves the requested scenario type for ped using the id returned by `_REQUEST_SCENARIO_TYPE_FOR_PED`
Sources
alloc8or RDR3 NativeDB · VORPCORE RDR3natives
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.