RedM Natives

_CAN_PED_USE_SCENARIO_POINT

p2 is always 0, p3 is always 0, p4 is always 1

Hash0xAB643407D0B26F07
Runtime nameCanPedUseScenarioPoint
NamespacePED
SideClient
NameCommunity guess
Docs
Since build1207

Signature

BOOL _CAN_PED_USE_SCENARIO_POINT(Ped ped, int scenario, Any p2, Any p3, Any p4);

Parameters

NameTypeDescription
pedPed—
scenarioint—
p2Any—
p3Any—
p4Any—

Returns BOOL

Description

p2 is always 0, p3 is always 0, p4 is always 1

Usage

Lua
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#
JavaScript
const retval = CanPedUseScenarioPoint(ped, scenario, p2, p3, p4);

// by hash
const retval = Citizen.invokeNative('0xAB643407D0B26F07', ped, scenario, p2, p3, p4, Citizen.returnResultAnyway());
C#
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 InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB

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