The Lab
TASK native

_SET_PED_PATH_PREFER_HORSE_WALKABLE

returns void3 paramsbuild 1207

Makes pathfinding for ped prefer horse-walkable terrain.

Signature

C
void _SET_PED_PATH_PREFER_HORSE_WALKABLE(Ped ped, BOOL preferHorseWalkable, float p2); // 0x216343750545A486 b1207

Parameters

#NameType
1pedPed
2preferHorseWalkableBOOL
3p2float

Facts

Facts about _SET_PED_PATH_PREFER_HORSE_WALKABLE
Name
_SET_PED_PATH_PREFER_HORSE_WALKABLE
Hash
0x216343750545A486
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0x216343750545A486, -- _SET_PED_PATH_PREFER_HORSE_WALKABLE
  PlayerPedId(), -- Ped ped
  false, -- BOOL preferHorseWalkable
  0.0 -- float p2
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x216343750545A486", // _SET_PED_PATH_PREFER_HORSE_WALKABLE
  PlayerPedId(), // Ped ped
  false, // BOOL preferHorseWalkable
  0.0 // float p2
);
C#
Function.Call((Hash)0x216343750545A486, // _SET_PED_PATH_PREFER_HORSE_WALKABLE
  API.PlayerPedId(), // Ped ped
  false, // BOOL preferHorseWalkable
  0.0f // float p2
);
All TASK natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.