IS_PED_EVASIVE_DIVING
Returns true while ped is diving out of the way, writing the entity it is evading to evadingEntity.
Signature
BOOL IS_PED_EVASIVE_DIVING(Ped ped, Entity* evadingEntity); // 0x414641C26E105898 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | evadingEntity | Entity* (out pointer) |
Facts
| 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.
local result, evadingEntity = Citizen.InvokeNative(0x414641C26E105898, -- IS_PED_EVASIVE_DIVING
PlayerPedId(), -- Ped ped
Citizen.PointerValueInt(), -- Entity* evadingEntity
Citizen.ReturnResultAnyway()
)
if result then
-- ...
endconst [result, evadingEntity] = Citizen.invokeNative("0x414641C26E105898", // IS_PED_EVASIVE_DIVING
PlayerPedId(), // Ped ped
Citizen.pointerValueInt(), // Entity* evadingEntity
Citizen.returnResultAnyway()
);
if (result) {
// ...
}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>();Related PED natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.