RedM Natives

_GET_PED_BLACKBOARD_BOOL

Can be used to get a peds foliage active status: variableName = FoliageActive

Hash0x498F2E77982D6945
Runtime nameGetPedBlackboardBool
NamespacePED
SideClient
NameCommunity guess
Docs
Since build1207

Signature

BOOL _GET_PED_BLACKBOARD_BOOL(Ped ped, const char* variableName);

Parameters

NameTypeDescription
pedPed—
variableNameconst char*—

Returns BOOL

Description

Can be used to get a peds foliage active status: variableName = FoliageActive

Usage

Lua
local retval = GetPedBlackboardBool(ped, variableName)

-- always works, by hash
local retval = Citizen.InvokeNative(0x498F2E77982D6945, ped, variableName, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = GetPedBlackboardBool(ped, variableName);

// by hash
const retval = Citizen.invokeNative('0x498F2E77982D6945', ped, variableName, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x498F2E77982D6945, ped, variableName);
  • 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

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