The Lab
PED native

IS_PED_EVASIVE_DIVING

returns BOOL2 paramsbuild 1207

Returns true while ped is diving out of the way, writing the entity it is evading to evadingEntity.

Signature

C
BOOL IS_PED_EVASIVE_DIVING(Ped ped, Entity* evadingEntity); // 0x414641C26E105898 b1207

Parameters

#NameType
1pedPed
2evadingEntityEntity* (out pointer)

Facts

Facts about IS_PED_EVASIVE_DIVING
Name
IS_PED_EVASIVE_DIVING
Hash
0x414641C26E105898
Namespace
Returns
BOOL
Game build
1207

Examples

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

Lua
local result, evadingEntity = Citizen.InvokeNative(0x414641C26E105898, -- IS_PED_EVASIVE_DIVING
  PlayerPedId(), -- Ped ped
  Citizen.PointerValueInt(), -- Entity* evadingEntity
  Citizen.ReturnResultAnyway()
)
if result then
  -- ...
end
JavaScript
const [result, evadingEntity] = Citizen.invokeNative("0x414641C26E105898", // IS_PED_EVASIVE_DIVING
  PlayerPedId(), // Ped ped
  Citizen.pointerValueInt(), // Entity* evadingEntity
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
var evadingEntityArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0x414641C26E105898, // IS_PED_EVASIVE_DIVING
  API.PlayerPedId(), // Ped ped
  evadingEntityArg // Entity* evadingEntity
);
int evadingEntity = evadingEntityArg.GetResult<int>();
All PED natives

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