_CAN_PED_USE_SCENARIO_POINT
p2 is always 0, p3 is always 0, p4 is always 1
Hash
0xAB643407D0B26F07Runtime name
CanPedUseScenarioPointNamespacePED
SideClient
NameCommunity guess
Docs
Since build1207
Signature
BOOL _CAN_PED_USE_SCENARIO_POINT(Ped ped, int scenario, Any p2, Any p3, Any p4);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
scenario | int | — |
p2 | Any | — |
p3 | Any | — |
p4 | Any | — |
Returns BOOL
Description
p2 is always 0, p3 is always 0, p4 is always 1
Usage
local retval = CanPedUseScenarioPoint(ped, scenario, p2, p3, p4)
-- always works, by hash
local retval = Citizen.InvokeNative(0xAB643407D0B26F07, ped, scenario, p2, p3, p4, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = CanPedUseScenarioPoint(ped, scenario, p2, p3, p4);
// by hash
const retval = Citizen.invokeNative('0xAB643407D0B26F07', ped, scenario, p2, p3, p4, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0xAB643407D0B26F07, ped, scenario, p2, p3, p4);- 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.