RedM Natives

IS_PED_EVASIVE_DIVING

Presumably returns the Entity that the Ped is currently diving out of the way of.

Hash0x414641C26E105898
Runtime nameIsPedEvasiveDiving
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x414641C26E105898

Signature

BOOL IS_PED_EVASIVE_DIVING(Ped ped, Entity* evadingEntity);

Parameters

NameTypeDescription
pedPed—
evadingEntityEntity*—

Returns BOOL

Description

Presumably returns the Entity that the Ped is currently diving out of the way of.

Usage

Lua
local retval, evadingEntity = IsPedEvasiveDiving(ped, evadingEntity)

-- always works, by hash
local retval, evadingEntity = Citizen.InvokeNative(0x414641C26E105898, ped, Citizen.PointerValueIntInitialized(evadingEntity), Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const [retval, evadingEntity] = IsPedEvasiveDiving(ped, evadingEntity);

// by hash
const [retval, evadingEntity] = Citizen.invokeNative('0x414641C26E105898', ped, Citizen.pointerValueIntInitialized(evadingEntity), Citizen.returnResultAnyway());
C#
var evadingEntity = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0x414641C26E105898, ped, evadingEntity);
// evadingEntity.GetResult<int>()
  • The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.

Sources

alloc8or RDR3 NativeDB

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