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
- OBJECTfloat
GET_RAYFIRE_MAP_OBJECT_ANIM_PHASE
``` `object`: The des-object handle to get the animation progress from. Return value is a float between 0.0 and 1.0, 0.0 is the beginning of the animation, 1.0 is the end. Value resets to 0.0 instantly after reaching 1.0. ```
0x260EE4FDBDF4DB01 - OBJECTVector3
GET_SAFE_PICKUP_COORDS
Description not yet documented
0x6E16BC2503FF1FF0 - OBJECTint
GET_STATE_OF_RAYFIRE_MAP_OBJECT
See [`SET_STATE_OF_RAYFIRE_MAP_OBJECT`](#\_0x5C29F698D404C5E1) to see the different states Get a destructible object's state. Substract 1 to get the real state. For example, if the object just spawned (state 2), the native will return 3.
0x899BA936634A322E - OBJECTHash
GET_WEAPON_TYPE_FROM_PICKUP_TYPE
Description not yet documented
0x08F96CA6C551AD51 - OBJECTBOOL
HAS_CLOSEST_OBJECT_OF_TYPE_BEEN_BROKEN
Description not yet documented
0x761B0E69AC4D007E - OBJECTBOOL
HAS_OBJECT_BEEN_BROKEN
``` NativeDB Added Parameter 2: Any p1 ```
0x8ABFB70C49CC43E2 - OBJECTBOOL
HAS_PICKUP_BEEN_COLLECTED
Description not yet documented
0x80EC48E6679313F9 - OBJECTvoid
_HIDE_PICKUP_OBJECT
Description not yet documented
0x2777150CC7D9365E - OBJECTBOOL
IS_DOOR_CLOSED
Description not yet documented
0xC531EE8A1145A149 - OBJECTBOOL
_IS_DOOR_REGISTERED_WITH_NETWORK
Description not yet documented
0xB5DED7B65C604FDF - OBJECTBOOL
_IS_DOOR_REGISTERED_WITH_OWNER
Returns true if door is alredy registered with owner
0x4F89DAD4156BA145 - OBJECTBOOL
IS_DOOR_REGISTERED_WITH_SYSTEM
``` if (OBJECT::IS_DOOR_REGISTERED_WITH_SYSTEM(doorHash)) { OBJECT::REMOVE_DOOR_FROM_SYSTEM(doorHash); } ```
0xC153C43EA202C8C1 - OBJECTBOOL
_IS_MODEL_A_PORTABLE_PICKUP
returns true if the model hash is a portable pickup its used before creating a portable pick up for example
0x20135AF9C10D2A3D - OBJECTBOOL
IS_OBJECT_A_PORTABLE_PICKUP
``` NativeDB Introduced: v1365 ```
0x0378C08504160D0D - OBJECTBOOL
IS_OBJECT_VISIBLE
Description not yet documented
0x8B32ACE6326A7546 - OBJECTBOOL
_IS_PICKUP_PICKABLE_FOR_TEAM
Description not yet documented
0x9F52AD67D1A91BAD - OBJECTBOOL
_IS_PICKUP_TYPE_VALID
Description not yet documented
0x007BD043587F7C82 - OBJECTBOOL
IS_POINT_IN_ANGLED_AREA
An **angled area** is an X-Z oriented rectangle with three parameters: 1. **origin**: the mid-point along a base edge of the rectangle; 2. **extent**: the mid-point of opposite base edge on the other Z; 3. **width**: the length of the base edge; (named derived from logging strings `CNetworkRoadNodeWorldStateData`). The oriented rectangle can then be derived from the direction of the two points (`norm(origin - extent)`), its orthonormal, and the width, e.g: 1.  2. 
0x2A70BAE8883E4C81 - OBJECTvoid
_MAKE_ITEM_CARRIABLE
_PRE* or _Q* or _RE*
0x1461DF6DB886BE3F - OBJECTvoid
ONLY_CLEAN_UP_OBJECT_WHEN_OUT_OF_RANGE
``` is this like setting is as no longer needed? ```
0xADBE4809F19F927A - OBJECTBOOL
PLACE_OBJECT_ON_GROUND_PROPERLY
Description not yet documented
0x58A850EAEE20FAA3 - OBJECTvoid
PREVENT_COLLECTION_OF_PORTABLE_PICKUP
Description not yet documented
0x92AEFB5F6E294023 - OBJECTvoid
REMOVE_ALL_PICKUPS_OF_TYPE
Pickup hashes can be found [here](https://gist.github.com/4mmonium/1eabfb6b3996e3aa6b9525a3eccf8a0b).
0x27F9D613092159CF - OBJECTvoid
REMOVE_DOOR_FROM_SYSTEM
CDoor and CDoorSystemData still internally allocated (and their associations between doorHash, modelHash, and coordinates). Only its NetObj removed and flag `*(v2 + 192) |= 8u` (1604 retail) toggled.
0x464D8E1427156FE4 - OBJECTvoid
REMOVE_PICKUP
Description not yet documented
0x3288D8ACAECD2AB2 - OBJECTvoid
_RESET_OBJECT_VELOCITY
Description not yet documented
0xF40AB58D83C35027 - OBJECTvoid
SET_ACTIVATE_OBJECT_PHYSICS_AS_SOON_AS_IT_IS_UNFROZEN
Description not yet documented
0x406137F8EF90EAF5 - OBJECTvoid
_SET_AMBIENT_PICKUP_LIFETIME
Description not yet documented
0xAC9AE68F0A463752 - OBJECTvoid
_SET_AUTO_JUMPABLE_BY_HORSE
Sets object as auto-jumpable by horse.
0x98D2D9C053A1F449 - OBJECTvoid
SET_CUSTOM_TEXTURES_ON_OBJECT
Description not yet documented
0xE124889AE0521FCF - OBJECTvoid
_SET_DOOR_ENABLE_KICK_PROMPT
Enables the kick prompt for a door
0xC07B91B996C1DE89 - OBJECTvoid
_SET_DOOR_KNOCKING_WHEN_LOCKED
Changes the interaction behavior for a locked door. Normally, when interacting with a locked door, the character tries the handle. When this native is enabled, that behavior is replaced with a knocking/tapping interaction for the specified door. With toggle enabled: - pressing the interact button on a locked door makes the character knock/tap on the door instead of trying the handle - this does not unlock the door - if the door is in a breakable/force-open state, it may still be opened by physically forcing it (e.g. sprinting into it), but normal interaction still uses the knocking behavior
0xA93F925F1942E434 - OBJECTvoid
SET_FORCE_OBJECT_THIS_FRAME
Description not yet documented
0xF538081986E49E9D - OBJECTvoid
_SET_LIGHT_INTENSITY_FOR_OBJECT
Description not yet documented
0xF49574E2332A8F06 - OBJECTvoid
_SET_LIGHT_SCATTERING_DISABLED_FOR_OBJECT
Description not yet documented
0x04D1D4E411CE52D0 - OBJECTvoid
_SET_LIGHT_TRANSLUCENCY_FOR_OBJECT
Params: value = 0.0 - 586.67 (?)
0x63E39F09310F481F - OBJECTvoid
SET_LOCAL_PLAYER_CAN_COLLECT_PORTABLE_PICKUPS
Description not yet documented
0x78857FC65CADB909 - OBJECTvoid
SET_LOCAL_PLAYER_PERMITTED_TO_COLLECT_PICKUPS_WITH_MODEL
Maximum amount of pickup models that can be disallowed is 10. Old name: _SET_LOCAL_PLAYER_CAN_USE_PICKUPS_WITH_THIS_MODEL
0x88EAEC617CD26926 - OBJECTvoid
SET_MAX_NUM_PORTABLE_PICKUPS_CARRIED_BY_PLAYER
Description not yet documented
0x0BF3B3BD47D79C08 - OBJECTvoid
_SET_NETWORK_PICKUP_USABLE_FOR_PLAYER
Params: p2 controls whether to make pickups usable/collectable or not in networked games
0x94F3D956BFAEAE18
A living reference. Documentation coverage varies by native and source.