The RedM developer’s field guide
Know the native.
Build the world.
Engine functions, framework docs, and game assets.
One reference. From the first lookup to the last line.
knowledge base
Explore / RedM
Native reference
- ENTITYAny
_0xF59FDE7B4D31A630
Description not yet documented
0xF59FDE7B4D31A630 - ENTITYvoid
_0xFF9965C47FA404DA
SET_ENTITY_LO*
0xFF9965C47FA404DA - ENTITYvoid
_ADD_ENTITY_TRACKING_TRAILS
Description not yet documented
0x1AD922AB5038DEF3 - ENTITYvoid
APPLY_FORCE_TO_ENTITY
Description not yet documented
0xF15E8F5D333F09C4 - ENTITYvoid
APPLY_FORCE_TO_ENTITY_CENTER_OF_MASS
p6/relative - makes the xyz force not relative to world coords, but to something else p7/highForce - setting false will make the force really low
0x31DA7CEC5334DB37 - ENTITYvoid
_ATTACH_ENTITY_TO_COORDS_PHYSICALLY
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
0x445D7D8EA66E373E - ENTITYvoid
ATTACH_ENTITY_TO_ENTITY
Attaches entity1 to bone (boneIndex) of entity2. boneIndex - this is different to boneID, use GET_PED_BONE_INDEX to get the index from the ID. use the index for attaching to specific bones. entity1 will be attached to entity2's centre if bone index given doesn't correspond to bone indexes for that entity type. https://github.com/femga/rdr3_discoveries/tree/master/boneNames useSoftPinning - if set to false attached entity will not detach when fixed collision - controls collision between the two entities (FALSE disables collision). isPed - pitch doesn't work when false and roll will only work on negative numbers (only peds) vertexIndex - position of vertex fixedRot - if false it ignores entity vector
0x6B9BBD38AB0796DF - ENTITYvoid
ATTACH_ENTITY_TO_ENTITY_PHYSICALLY
Description not yet documented
0xB629A43CA1643481 - ENTITYBOOL
_CHANGE_ENTITY_HEALTH
Alters entity's health by 'amount'. Can be negative (to drain health). In the scripts entity2 and weaponHash are unused (zero).
0x835F131E7DC8F97A - ENTITYvoid
CLEAR_ENTITY_LAST_DAMAGE_ENTITY
Description not yet documented
0xBB19AC7D4DCEFD0F - ENTITYAny
_CREATE_FOOTPATH_TRAIL
Description not yet documented
0x29BA9F78321E5A6C - ENTITYvoid
CREATE_FORCED_OBJECT
Description not yet documented
0x0961A905AFBC34C7 - ENTITYvoid
CREATE_MODEL_HIDE
Description not yet documented
0x069848B3FB3C4426 - ENTITYvoid
CREATE_MODEL_HIDE_EXCLUDING_SCRIPT_OBJECTS
Description not yet documented
0xD136090A9AAAB17D - ENTITYvoid
CREATE_MODEL_SWAP
Only works with objects!
0x10B2218320B6F5AC - ENTITYvoid
_DELETE_CARRIABLE
Description not yet documented
0x0D0DB2B6AF19A987 - ENTITYvoid
DELETE_ENTITY
Deletes the specified entity, then sets the handle pointed to by the pointer to NULL.
0x4CD38C78BD19A497 - ENTITYvoid
_DELETE_ENTITY_2
[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.
0x5E94EA09E7207C16 - ENTITYvoid
DETACH_ENTITY
Description not yet documented
0x64CDE9D6BF8ECAD3 - ENTITYvoid
_DISABLE_STAIRS_STEP_FOR_VOLUME
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.
0x37CEB637BA3B1A47 - ENTITYBOOL
DOES_ENTITY_BELONG_TO_THIS_SCRIPT
Description not yet documented
0x622B1980CBE13332 - ENTITYBOOL
DOES_ENTITY_EXIST
Checks if the Entity exists
0xD42BD6EB2E0F1677 - ENTITYBOOL
DOES_ENTITY_HAVE_DRAWABLE
Description not yet documented
0x20487F0DA9AF164A - ENTITYBOOL
DOES_ENTITY_HAVE_PHYSICS
Description not yet documented
0xA512B3F1B2A0B51C - ENTITYBOOL
_DOES_THREAD_OWN_THIS_ENTITY
Returns true if calling script owns specified entity
0x88AD6CC10D8D35B2 - ENTITYvoid
_ENABLE_STAIRS_STEP_FOR_VOLUME
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
0xEAB3D91D30A344F1 - ENTITYBOOL
FIND_ANIM_EVENT_PHASE
Description not yet documented
0x42718CC559BD7776 - ENTITYvoid
FORCE_ENTITY_AI_AND_ANIMATION_UPDATE
Description not yet documented
0x4C9E96473D4F1A88 - ENTITYvoid
_FORCE_TRAIN_WAGON_POPULATION
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); } }
0x119A5714578F4E05 - ENTITYvoid
FREEZE_ENTITY_POSITION
Description not yet documented
0x7D9EFB7AD6B19754 - ENTITYfloat
GET_ANIM_DURATION
Description not yet documented
0x9FFAF4940A54CC09 - ENTITYint
GET_CARRIABLE_ENTITY_STATE
enum eCarriableState { CARRIABLE_STATE_NONE, CARRIABLE_STATE_TRANSITIONING_TO_HOGTIED, CARRIABLE_STATE_CARRIABLE_INTRO, CARRIABLE_STATE_CARRIABLE, CARRIABLE_STATE_BEING_PICKED_UP_FROM_GROUND, CARRIABLE_STATE_CARRIED_BY_HUMAN, CARRIABLE_STATE_BEING_PLACED_ON_GROUND, CARRIABLE_STATE_CARRIED_BY_MOUNT, CARRIABLE_STATE_BEING_PLACED_ON_MOUNT, CARRIABLE_STATE_BEING_PICKED_UP_FROM_MOUNT, CARRIABLE_STATE_BEING_CUT_FREE, CARRIABLE_STATE_BEING_PLACED_ON_GROUND_ESCAPE, CARRIABLE_STATE_BEING_PLACED_IN_VEHICLE };
0x61914209C36EFDDB - ENTITYHash
_GET_CARRIABLE_FROM_ENTITY
Returns a hash of an entity's name. (Alternative Name: _GET_ENTITY_PROMPT_NAME_HASH)
0x31FEF6A20F00B963 - ENTITYfloat
_GET_COLLISION_INTENSITY
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
0x6D58167F62238284 - ENTITYint
_GET_ENTITIES_IN_VOLUME
Description not yet documented
0x886171A12F400B89 - ENTITYint
_GET_ENTITIES_NEAR_POINT
Description not yet documented
0x59B57C4B06531E1E - ENTITYBOOL
_GET_ENTITY_ALBEDO
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
0x120376C23F019C6C - ENTITYint
GET_ENTITY_ALPHA
Description not yet documented
0x1BB501624FAF2BEA - ENTITYfloat
_GET_ENTITY_ANIM_CURRENT_TIME
Returns a normalized value between 0.0f and 1.0f. You can get the actual anim time by multiplying this by GET_ANIM_DURATION
0x627520389E288A73 - ENTITYEntity
GET_ENTITY_ATTACHED_TO
Description not yet documented
0x56D713888A566481
A living reference. Documentation coverage varies by native and source.