From the reference libraryRedM

ENTITY Natives - Part 5 of 6

natives/ENTITY/ENTITY_natives_part5.md

ENTITY Natives - Part 5 of 6

Red Dead Redemption 3 Native Functions Reference

Namespace: ENTITY
Natives in this file: 50
Total natives in namespace: 268
Generated from: RDR3natives JSON data


_0xD21C7418C590BB40

Property Value
Native Name _0xD21C7418C590BB40
Hash 0xD21C7418C590BB40
Return Type Any
Build 1207
Parameters p0 (Any)

Parameters

  • p0 (Any)

Usage

Lua (Direct):

local result = _0xD21C7418C590BB40(p0)

Lua (Hash):

local result = Citizen.InvokeNative(0xD21C7418C590BB40, p0)

_SET_ENTITY_ROTATION_PARALLEL_TO_LINE

Property Value
Native Name _SET_ENTITY_ROTATION_PARALLEL_TO_LINE
Hash 0xD45BB89B53FC0CFD
Return Type void
Build 1207
Parameters entity (Entity), coords1X (float), coords1Y (float), coords1Z (float), coords2X (float), coords2Y (float), coords2Z (float), p7 (int)

Description: Sets the entity's rotation so that it becomes parallel to the direction defined by the line between coords1 and coords2, without moving the entity from its current position.

This native does NOT make the entity face coords1 or coords2. Instead, it keeps the entity at its current world position and adjusts its orientation so that it is aligned parallel to the direction derived from the two coordinates

Usage

Lua (Direct):

SetEntityRotationParallelToLine(entity, coords1X, coords1Y, coords1Z, coords2X, coords2Y, coords2Z, p7)

Lua (Hash):

Citizen.InvokeNative(0xD45BB89B53FC0CFD, entity, coords1X, coords1Y, coords1Z, coords2X, coords2Y, coords2Z, p7)

_IS_MODEL_IN_NEED_OF_VEG_MODIFIER

Property Value
Native Name _IS_MODEL_IN_NEED_OF_VEG_MODIFIER
Hash 0xD4636C2EDB0DEA8A
Return Type BOOL
Build 1207
Parameters modelHash (Hash)

Description: Checks whether the specified model can be handled through the vegetation modifier path. This is not limited strictly to foliage. Testing shows many natural world models can return TRUE, including rocks, trees, bushes, grass, crops, branches, roots, logs, debris, and similar environment assets.

Usage

Lua (Direct):

local result = IsModelInNeedOfVegModifier(modelHash)

Lua (Hash):

local result = Citizen.InvokeNative(0xD4636C2EDB0DEA8A, modelHash)

_0xD46BF94C4C66FAB0

Property Value
Native Name _0xD46BF94C4C66FAB0
Hash 0xD46BF94C4C66FAB0
Return Type Any
Build 1207
Parameters p0 (Any), p1 (Any), p2 (Any), p3 (Any)

Parameters

  • p0 (Any)
  • p1 (Any)
  • p2 (Any)
  • p3 (Any)

Usage

Lua (Direct):

local result = _0xD46BF94C4C66FAB0(p0, p1, p2, p3)

Lua (Hash):

local result = Citizen.InvokeNative(0xD46BF94C4C66FAB0, p0, p1, p2, p3)

_SET_ENTITY_PELT_TEXTURE

Property Value
Native Name _SET_ENTITY_PELT_TEXTURE
Hash 0xDD03FC2089AD093C
Return Type void
Build 1207
Parameters entity (Entity), inventoryItem (Hash), albedo (Hash), p3 (int)

Description: Set the pelt texture to the entity, by albedo hash and inventory item hash Examples: object: P_CS_PELT_MEDLARGE albedo: a_c_boar_01_head_000_c0_000_ab, inventoryItem: PROVISION_BOAR_HIDE_POOR

Usage

Lua (Direct):

SetEntityPeltTexture(entity, inventoryItem, albedo, p3)

Lua (Hash):

Citizen.InvokeNative(0xDD03FC2089AD093C, entity, inventoryItem, albedo, p3)

_0xDF8E49EA89A01DB1

Description: Hardcoded to return zero/false.

Property Value
Native Name _0xDF8E49EA89A01DB1
Hash 0xDF8E49EA89A01DB1
Return Type Any
Build 1207
Parameters p0 (Any), p1 (Any), p2 (Any)

Parameters

  • p0 (Any)
  • p1 (Any)
  • p2 (Any)

Usage

Lua (Direct):

local result = _0xDF8E49EA89A01DB1(p0, p1, p2)

Lua (Hash):

local result = Citizen.InvokeNative(0xDF8E49EA89A01DB1, p0, p1, p2)

_GET_ENTITY_COLLISION_INTENSITY

Property Value
Native Name _GET_ENTITY_COLLISION_INTENSITY
Hash 0xDFC2B226D56D85F6
Return Type float
Build 1207
Parameters entity (Entity), entiy2 (Entity)

Description: Returns a float that appears to represent the collision impact intensity between two entities.

Based on observed usage, this value becomes large when entity1 hits entity2 with enough force. In the example below, if the returned value is greater than 500.0f, the first entity is moving, the second entity is nearly stationary, and the second entity is not already ragdolled, then SET_PED_TO_RAGDOLL is triggered.

Usage

Lua (Direct):

local result = GetEntityCollisionIntensity(entity, entiy2)

Lua (Hash):

local result = Citizen.InvokeNative(0xDFC2B226D56D85F6, entity, entiy2)

_0xE19035EB65AB2932

Property Value
Native Name _0xE19035EB65AB2932
Hash 0xE19035EB65AB2932
Return Type void
Build 1207
Parameters p0 (Any), p1 (Any)

Parameters

  • p0 (Any)
  • p1 (Any)

Usage

Lua (Direct):

_0xE19035EB65AB2932(p0, p1)

Lua (Hash):

Citizen.InvokeNative(0xE19035EB65AB2932, p0, p1)

_0xE31FC20319874CB3

Property Value
Native Name _0xE31FC20319874CB3
Hash 0xE31FC20319874CB3
Return Type Any
Build 1207
Parameters p0 (Any), p1 (Any), p2 (Any)

Parameters

  • p0 (Any)
  • p1 (Any)
  • p2 (Any)

Usage

Lua (Direct):

local result = _0xE31FC20319874CB3(p0, p1, p2)

Lua (Hash):

local result = Citizen.InvokeNative(0xE31FC20319874CB3, p0, p1, p2)

_0xE75EEA8DB59A9F39

Property Value
Native Name _0xE75EEA8DB59A9F39
Hash 0xE75EEA8DB59A9F39
Return Type void
Build 1207
Parameters p0 (Any), p1 (Any), p2 (Any), p3 (Any), p4 (Any), p5 (Any)

Parameters

  • p0 (Any)
  • p1 (Any)
  • p2 (Any)
  • p3 (Any)
  • p4 (Any)
  • p5 (Any)

Usage

Lua (Direct):

_0xE75EEA8DB59A9F39(p0, p1, p2, p3, p4, p5)

Lua (Hash):

Citizen.InvokeNative(0xE75EEA8DB59A9F39, p0, p1, p2, p3, p4, p5)

_0xE9E7A0BAC7F57746

Property Value
Native Name _0xE9E7A0BAC7F57746
Hash 0xE9E7A0BAC7F57746
Return Type void
Build 1207
Parameters p0 (Any), p1 (Any)

Parameters

  • p0 (Any)
  • p1 (Any)

Usage

Lua (Direct):

_0xE9E7A0BAC7F57746(p0, p1)

Lua (Hash):

Citizen.InvokeNative(0xE9E7A0BAC7F57746, p0, p1)

_ENABLE_STAIRS_STEP_FOR_VOLUME

Property Value
Native Name _ENABLE_STAIRS_STEP_FOR_VOLUME
Hash 0xEAB3D91D30A344F1
Return Type void
Build 1207
Parameters volumeId (int)

Description: Re-enables normal stair stepping behavior within the specified volume. This restores proper step-by-step movement and foot placement for entities that was previously altered by _DISABLE_STAIRS_STEP_FOR_VOLUME

Usage

Lua (Direct):

EnableStairsStepForVolume(volumeId)

Lua (Hash):

Citizen.InvokeNative(0xEAB3D91D30A344F1, volumeId)

_0xEF259AA1E097E0AD

Property Value
Native Name _0xEF259AA1E097E0AD
Hash 0xEF259AA1E097E0AD
Return Type void
Build 1207
Parameters entity (Entity), p1 (Any)

Parameters

  • entity (Entity)
  • p1 (Any)

Usage

Lua (Direct):

_0xEF259AA1E097E0AD(entity, p1)

Lua (Hash):

Citizen.InvokeNative(0xEF259AA1E097E0AD, entity, p1)

_GET_ENTITY_LOOTING_PED

Description: Returns the entity that is looting a ped but only while the looting is active

Property Value
Native Name _GET_ENTITY_LOOTING_PED
Hash 0xEF2D9ED7CE684F08
Return Type Entity
API Set client
Build 1207
Parameters entity (Entity)

Parameters

  • entity (Entity)

Usage

Lua (Direct):

local result = GetEntityLootingPed(entity)

Lua (Hash):

local result = Citizen.InvokeNative(0xEF2D9ED7CE684F08, entity)

_0xF41E2979D5BC5370

Property Value
Native Name _0xF41E2979D5BC5370
Hash 0xF41E2979D5BC5370
Return Type void
Build 1207
Parameters p0 (Any)

Parameters

  • p0 (Any)

Usage

Lua (Direct):

_0xF41E2979D5BC5370(p0)

Lua (Hash):

Citizen.InvokeNative(0xF41E2979D5BC5370, p0)

_0xF59FDE7B4D31A630

Property Value
Native Name _0xF59FDE7B4D31A630
Hash 0xF59FDE7B4D31A630
Return Type Any
Build 1207
Parameters p0 (Any)

Parameters

  • p0 (Any)

Usage

Lua (Direct):

local result = _0xF59FDE7B4D31A630(p0)

Lua (Hash):

local result = Citizen.InvokeNative(0xF59FDE7B4D31A630, p0)

SET_ENTITY_CAN_ONLY_BE_DAMAGED_BY_SCRIPT_PARTICIPANTS

Property Value
Native Name SET_ENTITY_CAN_ONLY_BE_DAMAGED_BY_SCRIPT_PARTICIPANTS
Hash 0xFF83AF534156B399
Return Type void
API Set client
Build 1207
Parameters EntityIndex (Entity), bOnlyDamagedWhenRunningScript (BOOL)

Parameters

  • EntityIndex (Entity)
  • bOnlyDamagedWhenRunningScript (BOOL)

Usage

Lua (Direct):

SetEntityCanOnlyBeDamagedByScriptParticipants(EntityIndex, bOnlyDamagedWhenRunningScript)

Lua (Hash):

Citizen.InvokeNative(0xFF83AF534156B399, EntityIndex, bOnlyDamagedWhenRunningScript)

_0xFF9965C47FA404DA

Description: SET_ENTITY_LO*

Property Value
Native Name _0xFF9965C47FA404DA
Hash 0xFF9965C47FA404DA
Return Type void
Build 1207
Parameters entity (Entity), toggle (BOOL)

Parameters

  • entity (Entity)
  • toggle (BOOL)

Usage

Lua (Direct):

_0xFF9965C47FA404DA(entity, toggle)

Lua (Hash):

Citizen.InvokeNative(0xFF9965C47FA404DA, entity, toggle)

_ADD_ENTITY_TRACKING_TRAILS

Property Value
Native Name _ADD_ENTITY_TRACKING_TRAILS
Hash 0x1AD922AB5038DEF3
Return Type void
Build 1207
Parameters entity (Entity)

Parameters

  • entity (Entity)

Usage

Lua (Direct):

AddEntityTrackingTrails(entity)

Lua (Hash):

Citizen.InvokeNative(0x1AD922AB5038DEF3, entity)

_CREATE_FOOTPATH_TRAIL

Property Value
Native Name _CREATE_FOOTPATH_TRAIL
Hash 0x29BA9F78321E5A6C
Return Type Any
Build 1207
Parameters p0 (Any), waypointRecord (const char*), bUseSnowOffset (BOOL), p3 (float), p4 (float), p5 (Any), p6 (Any), p7 (Any), p8 (Any), p9 (Any), p10 (Any), bInit (BOOL)

Parameters

  • p0 (Any)
  • waypointRecord (const char*)
  • bUseSnowOffset (BOOL)
  • p3 (float)
  • p4 (float)
  • p5 (Any)
  • p6 (Any)
  • p7 (Any)
  • p8 (Any)
  • p9 (Any)
  • p10 (Any)
  • bInit (BOOL)

Usage

Lua (Direct):

local result = CreateFootpathTrail(p0, waypointRecord, bUseSnowOffset, p3, p4, p5, p6, p7, p8, p9, p10, bInit)

Lua (Hash):

local result = Citizen.InvokeNative(0x29BA9F78321E5A6C, p0, waypointRecord, bUseSnowOffset, p3, p4, p5, p6, p7, p8, p9, p10, bInit)

_DELETE_CARRIABLE

Property Value
Native Name _DELETE_CARRIABLE
Hash 0x0D0DB2B6AF19A987
Return Type void
Build 1207
Parameters entity (Entity*)

Parameters

  • entity (Entity*)

Usage

Lua (Direct):

DeleteCarriable(entity)

Lua (Hash):

Citizen.InvokeNative(0x0D0DB2B6AF19A987, entity)

_DOES_THREAD_OWN_THIS_ENTITY

Description: Returns true if calling script owns specified entity

Property Value
Native Name _DOES_THREAD_OWN_THIS_ENTITY
Hash 0x88AD6CC10D8D35B2
Return Type BOOL
Build 1207
Parameters entity (Entity)

Parameters

  • entity (Entity)

Usage

Lua (Direct):

local result = DoesThreadOwnThisEntity(entity)

Lua (Hash):

local result = Citizen.InvokeNative(0x88AD6CC10D8D35B2, entity)

_GET_CARRIABLE_FROM_ENTITY

Description: Returns a hash of an entity's name. (Alternative Name: _GET_ENTITY_PROMPT_NAME_HASH)

Property Value
Native Name _GET_CARRIABLE_FROM_ENTITY
Hash 0x31FEF6A20F00B963
Return Type Hash
Build 1207
Parameters entity (Entity)

Parameters

  • entity (Entity)

Usage

Lua (Direct):

local result = GetCarriableFromEntity(entity)

Lua (Hash):

local result = Citizen.InvokeNative(0x31FEF6A20F00B963, entity)

_GET_ENTITIES_IN_VOLUME

Property Value
Native Name _GET_ENTITIES_IN_VOLUME
Hash 0x886171A12F400B89
Return Type int
Build 1207
Parameters volume (Volume), itemSet (ItemSet), entityType (int)

Parameters

  • volume (Volume)
  • itemSet (ItemSet)
  • entityType (int)

Usage

Lua (Direct):

local result = GetEntitiesInVolume(volume, itemSet, entityType)

Lua (Hash):

local result = Citizen.InvokeNative(0x886171A12F400B89, volume, itemSet, entityType)

_GET_ENTITIES_NEAR_POINT

Property Value
Native Name _GET_ENTITIES_NEAR_POINT
Hash 0x59B57C4B06531E1E
Return Type int
Build 1207
Parameters x (float), y (float), z (float), radius (float), itemSet (ItemSet), p5 (int)

Parameters

  • x (float)
  • y (float)
  • z (float)
  • radius (float)
  • itemSet (ItemSet)
  • p5 (int)

Usage

Lua (Direct):

local result = GetEntitiesNearPoint(x, y, z, radius, itemSet, p5)

Lua (Hash):

local result = Citizen.InvokeNative(0x59B57C4B06531E1E, x, y, z, radius, itemSet, p5)

_GET_ENTITY_ANIM_CURRENT_TIME

Property Value
Native Name _GET_ENTITY_ANIM_CURRENT_TIME
Hash 0x627520389E288A73
Return Type float
Build 1207
Parameters entity (Entity), animDict (char*), animName (char*)

Description: Returns a normalized value between 0.0f and 1.0f. You can get the actual anim time by multiplying this by GET_ANIM_DURATION

Usage

Lua (Direct):

local result = GetEntityAnimCurrentTime(entity, animDict, animName)

Lua (Hash):

local result = Citizen.InvokeNative(0x627520389E288A73, entity, animDict, animName)

GET_ENTITY_CAN_BE_DAMAGED

Description: Old name: _GET_ENTITY_CAN_BE_DAMAGED

Property Value
Native Name GET_ENTITY_CAN_BE_DAMAGED
Hash 0x75DF9E73F2F005FD
Return Type BOOL
API Set client
Build 1207
Parameters entity (Entity)

Parameters

  • entity (Entity)

Usage

Lua (Direct):

local result = GetEntityCanBeDamaged(entity)

Lua (Hash):

local result = Citizen.InvokeNative(0x75DF9E73F2F005FD, entity)

_GET_ENTITY_CARRY_CONFIG

Description: Returns zero if the entity is not a carriable

Property Value
Native Name _GET_ENTITY_CARRY_CONFIG
Hash 0x0FD25587BB306C86
Return Type Hash
Build 1207
Parameters entity (Entity)

Parameters

  • entity (Entity)

Usage

Lua (Direct):

local result = GetEntityCarryConfig(entity)

Lua (Hash):

local result = Citizen.InvokeNative(0x0FD25587BB306C86, entity)

_GET_ENTITY_FORWARD_VECTOR_YX

Description: Gets the entity's forward vector in YX(Z) eulers. Similar to GET_ENTITY_FORWARD_VECTOR

Property Value
Native Name _GET_ENTITY_FORWARD_VECTOR_YX
Hash 0x935A30AA88FB1014
Return Type Vector3
Build 1207
Parameters entity (Entity)

Parameters

  • entity (Entity)

Usage

Lua (Direct):

local result = GetEntityForwardVectorYx(entity)

Lua (Hash):

local result = Citizen.InvokeNative(0x935A30AA88FB1014, entity)

_GET_ENTITY_HEALTH_FLOAT

Description: Returns (CUR_HEALTH / MAX_HEALTH)

Property Value
Native Name _GET_ENTITY_HEALTH_FLOAT
Hash 0x96C638784DB4C815
Return Type float
Build 1207
Parameters entity (Entity)

Parameters

  • entity (Entity)

Usage

Lua (Direct):

local result = GetEntityHealthFloat(entity)

Lua (Hash):

local result = Citizen.InvokeNative(0x96C638784DB4C815, entity)

_GET_ENTITY_SCRIPT

Property Value
Native Name _GET_ENTITY_SCRIPT
Hash 0x2A08A32B6D49906F
Return Type Hash
Build 1207
Parameters entity (Entity), argStruct (Any*)

Parameters

  • entity (Entity)
  • argStruct (Any*)

Usage

Lua (Direct):

local result = GetEntityScript(entity, argStruct)

Lua (Hash):

local result = Citizen.InvokeNative(0x2A08A32B6D49906F, entity, argStruct)

_GET_ENTITY_THREAT_TIER

Property Value
Native Name _GET_ENTITY_THREAT_TIER
Hash 0xE12F56CB25D9CE23
Return Type int
Build 1207
Parameters entity (Entity)

Parameters

  • entity (Entity)

Usage

Lua (Direct):

local result = GetEntityThreatTier(entity)

Lua (Hash):

local result = Citizen.InvokeNative(0xE12F56CB25D9CE23, entity)

_GET_ENTITY_WORLD_POSITION_OF_DIMENSIONS

Property Value
Native Name _GET_ENTITY_WORLD_POSITION_OF_DIMENSIONS
Hash 0xF3FDA9A617A15145
Return Type void
Build 1207
Parameters entity (Entity), minimum (Vector3*), maximum (Vector3*)

Parameters

  • entity (Entity)
  • minimum (Vector3*)
  • maximum (Vector3*)

Usage

Lua (Direct):

GetEntityWorldPositionOfDimensions(entity, minimum, maximum)

Lua (Hash):

Citizen.InvokeNative(0xF3FDA9A617A15145, entity, minimum, maximum)

_GET_IS_BIRD

Property Value
Native Name _GET_IS_BIRD
Hash 0xC346A546612C49A9
Return Type BOOL
Build 1207
Parameters entity (Entity)

Parameters

  • entity (Entity)

Usage

Lua (Direct):

local result = GetIsBird(entity)

Lua (Hash):

local result = Citizen.InvokeNative(0xC346A546612C49A9, entity)

_GET_IS_CARRIABLE_PELT

Property Value
Native Name _GET_IS_CARRIABLE_PELT
Hash 0x255B6DB4E3AD3C3E
Return Type BOOL
Build 1207
Parameters entity (Entity)

Parameters

  • entity (Entity)

Usage

Lua (Direct):

local result = GetIsCarriablePelt(entity)

Lua (Hash):

local result = Citizen.InvokeNative(0x255B6DB4E3AD3C3E, entity)

_GET_IS_PREDATOR

Property Value
Native Name _GET_IS_PREDATOR
Hash 0x5594AFE9DE0C01B7
Return Type BOOL
Build 1207
Parameters entity (Entity)

Parameters

  • entity (Entity)

Usage

Lua (Direct):

local result = GetIsPredator(entity)

Lua (Hash):

local result = Citizen.InvokeNative(0x5594AFE9DE0C01B7, entity)

_GET_PINNED_MAP_ENTITY

Property Value
Native Name _GET_PINNED_MAP_ENTITY
Hash 0x4735E2A4BB83D9DA
Return Type Entity
Build 1207
Parameters p0 (Any)

Parameters

  • p0 (Any)

Usage

Lua (Direct):

local result = GetPinnedMapEntity(p0)

Lua (Hash):

local result = Citizen.InvokeNative(0x4735E2A4BB83D9DA, p0)

_GET_SCRIPT_OVERRIDE_ENTITY_LOOT_TABLE_PERMANENT

Description: Returns false if entity is not a ped or object.

Property Value
Native Name _GET_SCRIPT_OVERRIDE_ENTITY_LOOT_TABLE_PERMANENT
Hash 0x1E804EA9B12030A4
Return Type BOOL
Build 1207
Parameters entity (Entity), lootTable (Hash*)

Parameters

  • entity (Entity)
  • lootTable (Hash*)

Usage

Lua (Direct):

local result = GetScriptOverrideEntityLootTablePermanent(entity, lootTable)

Lua (Hash):

local result = Citizen.InvokeNative(0x1E804EA9B12030A4, entity, lootTable)

_IS_CARRIABLE_MODEL

Property Value
Native Name _IS_CARRIABLE_MODEL
Hash 0x5AFFA9DDC87846F8
Return Type BOOL
Build 1207
Parameters model (Hash)

Parameters

  • model (Hash)

Usage

Lua (Direct):

local result = IsCarriableModel(model)

Lua (Hash):

local result = Citizen.InvokeNative(0x5AFFA9DDC87846F8, model)

_IS_ENTITY_FROZEN

Description: Getter for FREEZE_ENTITY_POSITION

Property Value
Native Name _IS_ENTITY_FROZEN
Hash 0x083D497D57B7400F
Return Type BOOL
Build 1207
Parameters entity (Entity)

Parameters

  • entity (Entity)

Usage

Lua (Direct):

local result = IsEntityFrozen(entity)

Lua (Hash):

local result = Citizen.InvokeNative(0x083D497D57B7400F, entity)

_IS_ENTITY_FULLY_LOOTED

Property Value
Native Name _IS_ENTITY_FULLY_LOOTED
Hash 0x8DE41E9902E85756
Return Type BOOL
Build 1207
Parameters entity (Entity)

Parameters

  • entity (Entity)

Usage

Lua (Direct):

local result = IsEntityFullyLooted(entity)

Lua (Hash):

local result = Citizen.InvokeNative(0x8DE41E9902E85756, entity)

_IS_ENTITY_ON_TRAIN_TRACK

Property Value
Native Name _IS_ENTITY_ON_TRAIN_TRACK
Hash 0x857ACB0AB4BD0D55
Return Type BOOL
Build 1207
Parameters entity (Entity)

Parameters

  • entity (Entity)

Usage

Lua (Direct):

local result = IsEntityOnTrainTrack(entity)

Lua (Hash):

local result = Citizen.InvokeNative(0x857ACB0AB4BD0D55, entity)

_IS_ENTITY_OWNED_BY_PERSISTENCE_SYSTEM

Property Value
Native Name _IS_ENTITY_OWNED_BY_PERSISTENCE_SYSTEM
Hash 0xA7E51B53309EAC97
Return Type BOOL
Build 1207
Parameters entity (Entity)

Parameters

  • entity (Entity)

Usage

Lua (Direct):

local result = IsEntityOwnedByPersistenceSystem(entity)

Lua (Hash):

local result = Citizen.InvokeNative(0xA7E51B53309EAC97, entity)

End of ENTITY natives part 5

_CHANGE_ENTITY_HEALTH

Property Value
Native Name _CHANGE_ENTITY_HEALTH
Hash 0x835F131E7DC8F97A
Return Type BOOL
Build 1207
API Set client
Parameters entity (Entity), amount (float), entity2 (Entity), weaponHash (Hash)

Description: Alters entity's health by 'amount'. Can be negative (to drain health). In the scripts entity2 and weaponHash are unused (zero).

Usage

Lua (Direct):

local result = ChangeEntityHealth(entity, amount, entity2, weaponHash)

Lua (Hash):

local result = Citizen.InvokeNative(0x835F131E7DC8F97A, entity, amount, entity2, weaponHash)

_DELETE_ENTITY_2

Property Value
Native Name _DELETE_ENTITY_2
Hash 0x5E94EA09E7207C16
Return Type void
Build 1207
API Set client

Description: [warning: This native isn't useful for RedM, you should refer to [native: DELETE_ENTITY] instead.]

Must be called from a background script, otherwise it will do nothing.

Note: flagged unused upstream — not referenced by any shipped R* script; behaviour is unverified.

Usage

Lua (Direct):

DeleteEntity2()

Lua (Hash):

Citizen.InvokeNative(0x5E94EA09E7207C16)

_GET_ENTITY_BY_DOORHASH

Property Value
Native Name _GET_ENTITY_BY_DOORHASH
Hash 0xF7424890E4A094C0
Return Type Entity
Build 1207
API Set client
Parameters doorHash (Hash), p1 (int)

Description: Params: p1 = 0 in R* Scripts (GET_DOOR_ENTITY_FROM_ID) https://github.com/femga/rdr3_discoveries/blob/master/doorHashes/doorhashes.lua

Usage

Lua (Direct):

local result = GetEntityByDoorhash(doorHash, p1)

Lua (Hash):

local result = Citizen.InvokeNative(0xF7424890E4A094C0, doorHash, p1)

_GET_ENTITY_CARRYING_FLAG

Property Value
Native Name _GET_ENTITY_CARRYING_FLAG
Hash 0x808077647856DE62
Return Type BOOL
Build 1207
API Set client

Description: This native only works on Ped and Object entity types

Usage

Lua (Direct):

local result = GetEntityCarryingFlag()

Lua (Hash):

local result = Citizen.InvokeNative(0x808077647856DE62)

GET_ENTITY_PROOFS

Property Value
Native Name GET_ENTITY_PROOFS
Hash 0x6CF0DAD7FA1088EA
Return Type int
Build 1207
API Set client
Parameters entity (Entity)

Description: Note: this native was removed in 1232 but added back in 1311 Old name: _GET_ENTITY_PROOFS

Usage

Lua (Direct):

local result = GetEntityProofs(entity)

Lua (Hash):

local result = Citizen.InvokeNative(0x6CF0DAD7FA1088EA, entity)

_GET_OPTIMAL_CARRY_CONFIG

Property Value
Native Name _GET_OPTIMAL_CARRY_CONFIG
Hash 0x34F008A7E48C496B
Return Type Hash
Build 1207
API Set client
Parameters entity (Entity), index (int)

Description: Valid indices: 0 - 3 Index 1 always returns a hogtied config, doesn't matter the entity. It's for humans only and the ped must be resurrected first if it's dead.

Usage

Lua (Direct):

local result = GetOptimalCarryConfig(entity, index)

Lua (Hash):

local result = Citizen.InvokeNative(0x34F008A7E48C496B, entity, index)

_GET_PED_ANIMAL_TYPE

Property Value
Native Name _GET_PED_ANIMAL_TYPE
Hash 0x964000D355219FC0
Return Type Hash
Build 1207
API Set client
Parameters ped (Ped)

Description: Returns the ped's animal type hash: https://alloc8or.re/rdr3/doc/enums/eAnimalType.txt Combine this with GET_STRING_FROM_HASH_KEY to display localized entity names

Usage

Lua (Direct):

local result = GetPedAnimalType(ped)

Lua (Hash):

local result = Citizen.InvokeNative(0x964000D355219FC0, ped)
Back to documentation