From the reference libraryRedM

ENTITY Natives - Part 4 of 6

natives/ENTITY/ENTITY_natives_part4.md

ENTITY Natives - Part 4 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


_0x0CCEFC6C2C95DA2A

Property Value
Native Name _0x0CCEFC6C2C95DA2A
Hash 0x0CCEFC6C2C95DA2A
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 = _0x0CCEFC6C2C95DA2A(p0, p1, p2, p3)

Lua (Hash):

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

_0x0DB41D59E0F1502B

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

Parameters

  • p0 (Any)

Usage

Lua (Direct):

_0x0DB41D59E0F1502B(p0)

Lua (Hash):

Citizen.InvokeNative(0x0DB41D59E0F1502B, p0)

_0x0FD7D7C232876E72

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

Parameters

  • p0 (Any)

Usage

Lua (Direct):

_0x0FD7D7C232876E72(p0)

Lua (Hash):

Citizen.InvokeNative(0x0FD7D7C232876E72, p0)

_GET_ENTITY_ALBEDO

Property Value
Native Name _GET_ENTITY_ALBEDO
Hash 0x120376C23F019C6C
Return Type BOOL
Build 1207
Parameters entity (Entity), albedoHash (Any*)

Description: returns the albedo hash by carriable hash, use Citizen.pointerValueInt() as last parameter this native writes an albedo-related hash to the output pointer and returns whether the entity already has a valid albedo/material entry assigned if not it loads it and applies it using 0xDD03FC2089AD093C

Usage

Lua (Direct):

local result = GetEntityAlbedo(entity, albedoHash)

Lua (Hash):

local result = Citizen.InvokeNative(0x120376C23F019C6C, entity, albedoHash)

_SET_ENTITY_ATTACHED_OFFSET

Property Value
Native Name _SET_ENTITY_ATTACHED_OFFSET
Hash 0x16908E859C3AB698
Return Type void
Build 1207
Parameters entity (Entity), horizontalMode (BOOL), offsetX (float), offsetY (float), offsetZ (float)

Description: Applies and updates the positional offset of an entity relative to the entity it is attached to, while also controlling whether the offset is interpreted horizontally or vertically This native is typically used after ATTACH_ENTITY_TO_ENTITY

Usage

Lua (Direct):

SetEntityAttachedOffset(entity, horizontalMode, offsetX, offsetY, offsetZ)

Lua (Hash):

Citizen.InvokeNative(0x16908E859C3AB698, entity, horizontalMode, offsetX, offsetY, offsetZ)

_0x188736456D1DEDE6

Property Value
Native Name _0x188736456D1DEDE6
Hash 0x188736456D1DEDE6
Return Type Any
Build 1207
Parameters p0 (Any), p1 (Any)

Parameters

  • p0 (Any)
  • p1 (Any)

Usage

Lua (Direct):

local result = _0x188736456D1DEDE6(p0, p1)

Lua (Hash):

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

_0x20FAEE47427A4497

Property Value
Native Name _0x20FAEE47427A4497
Hash 0x20FAEE47427A4497
Return Type void
Build 1207
Parameters None

Usage

Lua (Direct):

_0x20FAEE47427A4497()

Lua (Hash):

Citizen.InvokeNative(0x20FAEE47427A4497, )

_GET_ENTITY_FROM_PELT

Property Value
Native Name _GET_ENTITY_FROM_PELT
Hash 0x2A77EF9BEC8518F4
Return Type int
Build 1207
Parameters pelt (Entity)

Description: Returns the original animal (carcass) entity from which a pelt entity was obtained if it still exists

Usage

Lua (Direct):

local result = GetEntityFromPelt(pelt)

Lua (Hash):

local result = Citizen.InvokeNative(0x2A77EF9BEC8518F4, pelt)

_SET_ENTITY_LIGHTS_DISABLED

Property Value
Native Name _SET_ENTITY_LIGHTS_DISABLED
Hash 0x2D40BCBFE9305DEA
Return Type void
Build 1207
Parameters entity (Entity), disabled (BOOL)

Description: Controls a forced "lights off" state for entities that have built-in light sources. This native does not enable lights, instead it overrides the light state by forcing them off.

Usage

Lua (Direct):

SetEntityLightsDisabled(entity, disabled)

Lua (Hash):

Citizen.InvokeNative(0x2D40BCBFE9305DEA, entity, disabled)

_0x350E9211074955AF

Property Value
Native Name _0x350E9211074955AF
Hash 0x350E9211074955AF
Return Type Any
Build 1207
Parameters p0 (Any), p1 (Any)

Parameters

  • p0 (Any)
  • p1 (Any)

Usage

Lua (Direct):

local result = _0x350E9211074955AF(p0, p1)

Lua (Hash):

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

_0x371D179701D9C082

Description: Called if entity is in water and submerged level is larger than 1f. If CARRYING_FLAG_FORCE_ALLOW_WARP_TO_SAFE_GROUND_LOCATION is true, it gets disabled as well.

Property Value
Native Name _0x371D179701D9C082
Hash 0x371D179701D9C082
Return Type void
Build 1436
Parameters entity (Entity)

Parameters

  • entity (Entity)

Usage

Lua (Direct):

_0x371D179701D9C082(entity)

Lua (Hash):

Citizen.InvokeNative(0x371D179701D9C082, entity)

_DISABLE_STAIRS_STEP_FOR_VOLUME

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

Description: Disables stair stepping behavior within the specified volume. When active, entities (typically peds/players) can still move up stairs, but their stepping animation and foot placement become irregular, causing them to skip steps or slide slightly instead of properly stepping each stair.

Usage

Lua (Direct):

DisableStairsStepForVolume(volumeId)

Lua (Hash):

Citizen.InvokeNative(0x37CEB637BA3B1A47, volumeId)

_0x383F64263F946E45

Description: Used when checking if ped is in water

Property Value
Native Name _0x383F64263F946E45
Hash 0x383F64263F946E45
Return Type BOOL
Build 1207
Parameters p0 (int*), entity (Entity), p2 (int), ped (Ped), p4 (Any), p5 (int)

Parameters

  • p0 (int*)
  • entity (Entity)
  • p2 (int)
  • ped (Ped)
  • p4 (Any)
  • p5 (int)

Usage

Lua (Direct):

local result = _0x383F64263F946E45(p0, entity, p2, ped, p4, p5)

Lua (Hash):

local result = Citizen.InvokeNative(0x383F64263F946E45, p0, entity, p2, ped, p4, p5)

_GET_HEADING_OF_ENTITY_BONE

Property Value
Native Name _GET_HEADING_OF_ENTITY_BONE
Hash 0x3AB3A77672F6473F
Return Type Vector3
Build 1207
Parameters entity (Entity), boneIndex (int), p2 (int), p3 (int)

Description: Returns the rotation/heading of a specific bone on an entity as a Vector3.

Usage

Lua (Direct):

local result = GetHeadingOfEntityBone(entity, boneIndex, p2, p3)

Lua (Hash):

local result = Citizen.InvokeNative(0x3AB3A77672F6473F, entity, boneIndex, p2, p3)

_0x3EC28DA1FFAC9DDD

Description: Used in Script Function DUELING_DID_PLAYER_DISARM_OPPONENT

Property Value
Native Name _0x3EC28DA1FFAC9DDD
Hash 0x3EC28DA1FFAC9DDD
Return Type BOOL
Build 1207
Parameters entity1 (Entity), entity2 (Entity), p2 (Any), p3 (Any)

Parameters

  • entity1 (Entity)
  • entity2 (Entity)
  • p2 (Any)
  • p3 (Any)

Usage

Lua (Direct):

local result = _0x3EC28DA1FFAC9DDD(entity1, entity2, p2, p3)

Lua (Hash):

local result = Citizen.InvokeNative(0x3EC28DA1FFAC9DDD, entity1, entity2, p2, p3)

_REQUEST_ENTITY_VISIBILITY_TRACKING

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

Description: Enables visibility tracking for the specified entity For peds, calling this makes PED::_IS_PED_VISIBILITY_TRACKED(ped) return true. For vehicles, calling this makes VEHICLE::IS_VEHICLE_VISIBLE(vehicle) return true in the tracked/visible state context observed from scripts

Usage

Lua (Direct):

RequestEntityVisibilityTracking(entity)

Lua (Hash):

Citizen.InvokeNative(0x3F08C6163A4AB1D6, entity)

_SET_ENTITY_DISABLE_FLAME

Property Value
Native Name _SET_ENTITY_DISABLE_FLAME
Hash 0x56E0735D6273B227
Return Type void
Build 1207
Parameters entity (Entity), enabled (BOOL)

Description: disables the flames only of fires like campfires

Usage

Lua (Direct):

SetEntityDisableFlame(entity, enabled)

Lua (Hash):

Citizen.InvokeNative(0x56E0735D6273B227, entity, enabled)

_GET_PELT_TEXTURE

Property Value
Native Name _GET_PELT_TEXTURE
Hash 0x5744562E973E33CD
Return Type BOOL
Build 1207
Parameters albedoHash (Hash), txdAlbedoDV (Any), txdNormalMapDV (Any), txdMaterialDV (Any), p4 (int)

Description: Get the pelt TXDs by the animal albedo hash, returns: normal map hash, material hash and albedo hash, this native needs dataview to be passed in, then use it to get the pelt TXDs

Usage

Lua (Direct):

local result = GetPeltTexture(albedoHash, txdAlbedoDV, txdNormalMapDV, txdMaterialDV, p4)

Lua (Hash):

local result = Citizen.InvokeNative(0x5744562E973E33CD, albedoHash, txdAlbedoDV, txdNormalMapDV, txdMaterialDV, p4)

_0x5826EFD6D73C4DE5

Description: REMOVE_DECALS* - _REMOVE_FORCED*

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

Parameters

  • entity (Entity)

Usage

Lua (Direct):

_0x5826EFD6D73C4DE5(entity)

Lua (Hash):

Citizen.InvokeNative(0x5826EFD6D73C4DE5, entity)

_0x582F73ACFE969571

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

Parameters

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

Usage

Lua (Direct):

local result = _0x582F73ACFE969571(p0, p1, p2)

Lua (Hash):

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

_PRELOAD_ENTITY_INTERIOR

Property Value
Native Name _PRELOAD_ENTITY_INTERIOR
Hash 0x6C31B06E91518269
Return Type void
Build 1207
Parameters entity (Entity), enabled (BOOL)

Description: This native can enable interiors for train carriages that the game engine has disabled due to distance-based optimization.

Usage

Lua (Direct):

PreloadEntityInterior(entity, enabled)

Lua (Hash):

Citizen.InvokeNative(0x6C31B06E91518269, entity, enabled)

_GET_COLLISION_INTENSITY

Property Value
Native Name _GET_COLLISION_INTENSITY
Hash 0x6D58167F62238284
Return Type float
Build 1207
Parameters vehicle (Vehicle)

Description: Returns the collision intensity currently registered on the specified entity. Used after HAS_ENTITY_COLLIDED_WITH_ANYTHING to measure how strong the impact was. Higher values indicate a stronger collision/impact

Usage

Lua (Direct):

local result = GetCollisionIntensity(vehicle)

Lua (Hash):

local result = Citizen.InvokeNative(0x6D58167F62238284, vehicle)

_0x7A49D40DE437BC8D

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

Parameters

  • p0 (Any)
  • p1 (Any)

Usage

Lua (Direct):

_0x7A49D40DE437BC8D(p0, p1)

Lua (Hash):

Citizen.InvokeNative(0x7A49D40DE437BC8D, p0, p1)

_0x7F20092547B4DDEA

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

Parameters

  • p0 (Any)

Usage

Lua (Direct):

_0x7F20092547B4DDEA(p0)

Lua (Hash):

Citizen.InvokeNative(0x7F20092547B4DDEA, p0)

_0x80FDEB3A9E9AA578

Property Value
Native Name _0x80FDEB3A9E9AA578
Hash 0x80FDEB3A9E9AA578
Return Type void
Build 1207
Parameters entity (Entity), p1 (BOOL)

Parameters

  • entity (Entity)
  • p1 (BOOL)

Usage

Lua (Direct):

_0x80FDEB3A9E9AA578(entity, p1)

Lua (Hash):

Citizen.InvokeNative(0x80FDEB3A9E9AA578, entity, p1)

_0x898586729DB5221D

Property Value
Native Name _0x898586729DB5221D
Hash 0x898586729DB5221D
Return Type void
Build 1207
Parameters ped (Ped)

Parameters

  • ped (Ped)

Usage

Lua (Direct):

_0x898586729DB5221D(ped)

Lua (Hash):

Citizen.InvokeNative(0x898586729DB5221D, ped)

_0x8E10DF0FFA63FB65

Property Value
Native Name _0x8E10DF0FFA63FB65
Hash 0x8E10DF0FFA63FB65
Return Type Any
Build 1207
Parameters p0 (Any), p1 (Any), p2 (Any), p3 (Any), p4 (Any)

Parameters

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

Usage

Lua (Direct):

local result = _0x8E10DF0FFA63FB65(p0, p1, p2, p3, p4)

Lua (Hash):

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

_0x978AA2323ED32209

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

Parameters

  • p0 (Any)
  • p1 (Any)

Usage

Lua (Direct):

_0x978AA2323ED32209(p0, p1)

Lua (Hash):

Citizen.InvokeNative(0x978AA2323ED32209, p0, p1)

_0x9C6906EF8CB20C5F

Property Value
Native Name _0x9C6906EF8CB20C5F
Hash 0x9C6906EF8CB20C5F
Return Type void
Build 1436
Parameters entity (Entity)

Parameters

  • entity (Entity)

Usage

Lua (Direct):

_0x9C6906EF8CB20C5F(entity)

Lua (Hash):

Citizen.InvokeNative(0x9C6906EF8CB20C5F, entity)

_SET_CARRIABLE_PICKUP_LIGHT

Property Value
Native Name _SET_CARRIABLE_PICKUP_LIGHT
Hash 0xA48E4801DEBDF7E4
Return Type void
Build 1207
Parameters entity (Entity), enabled (BOOL)

Description: Enables or disables the pickup light effect for carriable/interactable entities This native specifically works on entities that are carriable and can be interacted with (e.g. after TASK::_MAKE_OBJECT_CARRIABLE).

  • Unlike SET_PICKUP_LIGHT, this does NOT apply a generic light effect to all objects. Instead, it only highlights entities that the player can interact with (pickup context)

Usage

Lua (Direct):

SetCarriablePickupLight(entity, enabled)

Lua (Hash):

Citizen.InvokeNative(0xA48E4801DEBDF7E4, entity, enabled)

_0xA9E6D8F2DDFC4DB9

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

Parameters

  • p0 (Any)
  • p1 (Any)

Usage

Lua (Direct):

_0xA9E6D8F2DDFC4DB9(p0, p1)

Lua (Hash):

Citizen.InvokeNative(0xA9E6D8F2DDFC4DB9, p0, p1)

_PIN_MAP_ENTITY

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

Usage

Lua (Direct):

local result = PinMapEntity(entity)

Lua (Hash):

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

_GET_LAST_ENTITY_TO_DAMAGE_ENTITY

Property Value
Native Name _GET_LAST_ENTITY_TO_DAMAGE_ENTITY
Hash 0xAF72EC7E1B54539B
Return Type int
Build 1311
Parameters entity (Entity)

Description: Returns the last entity that dealt any damage to the specified entity. This native appears to retrieve the attacker responsible for the most recent damage event on the given entity.

Usage

Lua (Direct):

local result = GetLastEntityToDamageEntity(entity)

Lua (Hash):

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

_SET_ENTITY_LOCKON_POINT_OFFSET

Property Value
Native Name _SET_ENTITY_LOCKON_POINT_OFFSET
Hash 0xAF7F3099B9FEB535
Return Type void
Build 1207
Parameters entity (Entity), offsetX (float), offsetY (float), offsetZ (float)

Description: Sets an offset for the entity's lock-on / target focus point.

Usage

Lua (Direct):

SetEntityLockonPointOffset(entity, offsetX, offsetY, offsetZ)

Lua (Hash):

Citizen.InvokeNative(0xAF7F3099B9FEB535, entity, offsetX, offsetY, offsetZ)

_0xB16C780C51E51E2B

Property Value
Native Name _0xB16C780C51E51E2B
Hash 0xB16C780C51E51E2B
Return Type Any
Build 1207
Parameters p0 (Any)

Parameters

  • p0 (Any)

Usage

Lua (Direct):

local result = _0xB16C780C51E51E2B(p0)

Lua (Hash):

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

_0xB38A29CCD5447783

Property Value
Native Name _0xB38A29CCD5447783
Hash 0xB38A29CCD5447783
Return Type void
Build 1207
Parameters p0 (Any), p1 (Any), p2 (Any)

Parameters

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

Usage

Lua (Direct):

_0xB38A29CCD5447783(p0, p1, p2)

Lua (Hash):

Citizen.InvokeNative(0xB38A29CCD5447783, p0, p1, p2)

_0xBA2A089E60ED1163

Property Value
Native Name _0xBA2A089E60ED1163
Hash 0xBA2A089E60ED1163
Return Type Any
Build 1207
Parameters p0 (Any), p1 (Any), p2 (Any), p3 (Any), p4 (Any)

Parameters

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

Usage

Lua (Direct):

local result = _0xBA2A089E60ED1163(p0, p1, p2, p3, p4)

Lua (Hash):

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

_SET_AUTO_PICKUP

Property Value
Native Name _SET_AUTO_PICKUP
Hash 0xBD94CECFB2D65119
Return Type void
Build 1207
Parameters entity (Entity), noPickupAnim (BOOL), range (float), p3 (float), p4 (float), enablePickupPrompt (BOOL)

Description: Configures automatic pickup behavior for a carriable entity. This native is typically used after TASK_CARRIABLE and enables auto-pickup functionality with configurable parameters such as pickup animation behavior, pickup range, and pickup prompt state

Usage

Lua (Direct):

SetAutoPickup(entity, noPickupAnim, range, p3, p4, enablePickupPrompt)

Lua (Hash):

Citizen.InvokeNative(0xBD94CECFB2D65119, entity, noPickupAnim, range, p3, p4, enablePickupPrompt)

_SET_ENTITY_FLAME_INTENSITY

Property Value
Native Name _SET_ENTITY_FLAME_INTENSITY
Hash 0xC0EDEF16D90661EE
Return Type void
Build 1207
Parameters entity (Entity), intensity (float)

Description: Sets the intensity of the flames for a torch

Usage

Lua (Direct):

SetEntityFlameIntensity(entity, intensity)

Lua (Hash):

Citizen.InvokeNative(0xC0EDEF16D90661EE, entity, intensity)

_IS_TRAIN_INTERIOR_LOADED

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

Description: Checks whether the entity's interior is currently loaded by the game engine. This is mainly used for train carriages. When the player is far away or not standing on the train, the game unloads interiors of distant carriages as an optimization. If the interior of the entity is currently loaded, this native returns true

Usage

Lua (Direct):

local result = IsTrainInteriorLoaded(entity)

Lua (Hash):

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

_0xC3ABCFBC7D74AFA5

Description: Returns BOOL in ida

Property Value
Native Name _0xC3ABCFBC7D74AFA5
Hash 0xC3ABCFBC7D74AFA5
Return Type void
Build 1207
Parameters ped (Ped), p1 (int), p2 (BOOL)

Parameters

  • ped (Ped)
  • p1 (int)
  • p2 (BOOL)

Usage

Lua (Direct):

_0xC3ABCFBC7D74AFA5(ped, p1, p2)

Lua (Hash):

Citizen.InvokeNative(0xC3ABCFBC7D74AFA5, ped, p1, p2)

_0xC6A1A3D63F122DE7

Property Value
Native Name _0xC6A1A3D63F122DE7
Hash 0xC6A1A3D63F122DE7
Return Type void
Build 1311
Parameters p0 (Any), p1 (Any)

Parameters

  • p0 (Any)
  • p1 (Any)

Usage

Lua (Direct):

_0xC6A1A3D63F122DE7(p0, p1)

Lua (Hash):

Citizen.InvokeNative(0xC6A1A3D63F122DE7, p0, p1)

_0xC76E94A78127412B

Property Value
Native Name _0xC76E94A78127412B
Hash 0xC76E94A78127412B
Return Type void
Build 1207
Parameters p0 (Any), p1 (Any), p2 (Any)

Parameters

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

Usage

Lua (Direct):

_0xC76E94A78127412B(p0, p1, p2)

Lua (Hash):

Citizen.InvokeNative(0xC76E94A78127412B, p0, p1, p2)

_0xCDB682BB47C02F0A

Property Value
Native Name _0xCDB682BB47C02F0A
Hash 0xCDB682BB47C02F0A
Return Type void
Build 1207
Parameters entity (Entity), p1 (Hash)

Parameters

  • entity (Entity)
  • p1 (Hash)

Usage

Lua (Direct):

_0xCDB682BB47C02F0A(entity, p1)

Lua (Hash):

Citizen.InvokeNative(0xCDB682BB47C02F0A, entity, p1)

End of ENTITY natives part 4

_FORCE_TRAIN_WAGON_POPULATION

Property Value
Native Name _FORCE_TRAIN_WAGON_POPULATION
Hash 0x119A5714578F4E05
Return Type void
Build 1207
API Set client
Parameters carriage (Entity), force (BOOL)

Description: Enable/disable automatic ambient passenger population on a train wagon (carriage). - toggle=true: wagon is kept populated; removed/deleted passengers are replaced quickly. - toggle=false: stop auto-filling; after removing passengers, no new peds spawn until re-enabled.

Notes: - Intended for train carriage entities (wagons) obtained from a train (e.g., VEHICLE::GET_TRAIN_CARRIAGE). - Often used with passenger collection via VEHICLE::_GET_ALL_WAGON_PASSENGERS.

Example (from scripts): for (int i = 0; i < VEHICLE::_GET_NUM_CARS_FROM_TRAIN_CONFIG(trainConfig); ++i) { Vehicle wagon = VEHICLE::GET_TRAIN_CARRIAGE(train, i); if (ENTITY::DOES_ENTITY_EXIST(wagon) && !ENTITY::IS_ENTITY_DEAD(wagon)) { ENTITY::_FORCE_TRAIN_WAGON_POPULATION(wagon, true); } }

Usage

Lua (Direct):

ForceTrainWagonPopulation(carriage, force)

Lua (Hash):

Citizen.InvokeNative(0x119A5714578F4E05, carriage, force)

_0x37B01666BAE8F7EF

Property Value
Native Name _0x37B01666BAE8F7EF
Hash 0x37B01666BAE8F7EF
Return Type Any
Build 1207
API Set client
Parameters entity (Entity)

Description: Seems to return true if entity is burned / scorched GET_ENTITY*

Usage

Lua (Direct):

local result = _0x37B01666BAE8F7EF(entity)

Lua (Hash):

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

_ATTACH_ENTITY_TO_COORDS_PHYSICALLY

Property Value
Native Name _ATTACH_ENTITY_TO_COORDS_PHYSICALLY
Hash 0x445D7D8EA66E373E
Return Type void
Build 1207
API Set client
Parameters entity (Entity), x (float), y (float), z (float), offsetx (float), offsety (float), offsetz (float), timer (float), p8 (BOOL), p9 (int), p10 (int), p11 (int), p12 (int), p13 (int), p14 (int)

Description: Attach an entity to coordinates physically better name may be perfered? seems to be used with boats p_skiff02x ? The last 6 params are always 0 everywhere in the base code. offsetX = 500.0 some kind of time? offsetY =1

Usage

Lua (Direct):

AttachEntityToCoordsPhysically(entity, x, y, z, offsetx, offsety, offsetz, timer, p8, p9, p10, p11, p12, p13, p14)

Lua (Hash):

Citizen.InvokeNative(0x445D7D8EA66E373E, entity, x, y, z, offsetx, offsety, offsetz, timer, p8, p9, p10, p11, p12, p13, p14)

_GET_OFFSET_FROM_ENTITY_BONE

Property Value
Native Name _GET_OFFSET_FROM_ENTITY_BONE
Hash 0x5E214112806591EA
Return Type Vector3
Build 1207
API Set client
Parameters entity (Entity), boneIndex (int)

Description: Return the offset from the entity for the selected bone index

Usage

Lua (Direct):

local result = GetOffsetFromEntityBone(entity, boneIndex)

Lua (Hash):

local result = Citizen.InvokeNative(0x5E214112806591EA, entity, boneIndex)

_SET_MATERIAL_FILL_LEVEL_FOR_ENTITY

Property Value
Native Name _SET_MATERIAL_FILL_LEVEL_FOR_ENTITY
Hash 0x669655FFB29EF1A9
Return Type void
Build 1207
API Set client
Parameters entity (Entity), expressionType (int), dofName (char*), fillState (float)

Description: sets the fillState in state for some objects like for the stew, coffee mug ,poker chips, jugs ? P1 is either 0 or 2 dofName seems to be a label/name p3 is the fillState in state, max seems to be for some 3.0 (most is 1.0) - 0.0 heres some of the labels/names found tumbler_fill, Canvas, Stew_Fill, from Chip01_Ctrl to Chip10_Ctrl, from empty_jug01_Ctrl to empty_jug20_Ctrl, from full_jug01_Ctrl to full_jug20_Ctrl, CTRL_cupFill, Food_DOF_Fill, from WhiteChip_Ctrl_0 to WhiteChip_Ctrl_10, from BlueChip_Ctrl_0 to BlueChip_Ctrl_10, from BlackChip_Ctrl_0 to BlackChip_Ctrl_10, from RedChip_Ctrl_0 to RedChip_Ctrl_10,

Usage

Lua (Direct):

SetMaterialFillLevelForEntity(entity, expressionType, dofName, fillState)

Lua (Hash):

Citizen.InvokeNative(0x669655FFB29EF1A9, entity, expressionType, dofName, fillState)

_0x8E46E18AA828334F

Property Value
Native Name _0x8E46E18AA828334F
Hash 0x8E46E18AA828334F
Return Type float
Build 1207
API Set client
Parameters entity (Entity), animDict (const char*), animClip (const char*)

Description: Used in Script Function GENERIC_ITEM_HAS_ANIM_COMPLETED GET_ENTITY*

Usage

Lua (Direct):

local result = _0x8E46E18AA828334F(entity, animDict, animClip)

Lua (Hash):

local result = Citizen.InvokeNative(0x8E46E18AA828334F, entity, animDict, animClip)
Back to documentation