IS_PED_EVASIVE_DIVING
Presumably returns the Entity that the Ped is currently diving out of the way of.
Hash
0x414641C26E105898Runtime name
IsPedEvasiveDivingNamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x414641C26E105898Signature
BOOL IS_PED_EVASIVE_DIVING(Ped ped, Entity* evadingEntity);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
evadingEntity | Entity* | — |
Returns BOOL
Description
Presumably returns the Entity that the Ped is currently diving out of the way of.
Usage
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#
const [retval, evadingEntity] = IsPedEvasiveDiving(ped, evadingEntity);
// by hash
const [retval, evadingEntity] = Citizen.invokeNative('0x414641C26E105898', ped, Citizen.pointerValueIntInitialized(evadingEntity), Citizen.returnResultAnyway());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
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.