RedM Natives

_SET_PED_BLACKBOARD_INT

Blackboard natives allow you to apply and check certain data to/for peds.

Hash0x5F53010C4C3F6BAF
Runtime nameSetPedBlackboardInt
NamespacePED
SideClient
NameCommunity guess
Docs
Since build1207

Signature

void _SET_PED_BLACKBOARD_INT(Ped ped, const char* variableName, int value, int removeTimer);

Parameters

NameTypeDescription
pedPed—
variableNameconst char*—
valueint—
removeTimerint—

Returns void

Description

https://github.com/femga/rdr3_discoveries/tree/master/AI/BLACKBOARDS
Blackboard natives allow you to apply and check certain data to/for peds.
Blackboard bools, floats and strings are subdivided into 6 sections: "all", "animation", "any", "code", "global" and "script"
Most changes are only visible for "script" blackboards, some "script" blackboards change ped motions
"removeTimer" is self-removal timer, can be "-1" so your data will not be removed by the game (forever); 100 = 1 second

Usage

Lua
SetPedBlackboardInt(ped, variableName, value, removeTimer)

-- always works, by hash
Citizen.InvokeNative(0x5F53010C4C3F6BAF, ped, variableName, value, removeTimer)
JavaScript and C#
JavaScript
SetPedBlackboardInt(ped, variableName, value, removeTimer);

// by hash
Citizen.invokeNative('0x5F53010C4C3F6BAF', ped, variableName, value, removeTimer);
C#
Function.Call((Hash)0x5F53010C4C3F6BAF, ped, variableName, value, removeTimer);
  • 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.