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
- WEAPONint
_GET_PED_WEAPON_AMMO_FROM_GUID
Return total ammo in ped weapon from its guid, or false if 0 Example: https://pastebin.com/u2Hcah3C
0x4823F13A21F51964 - WEAPONBOOL
GET_PED_WEAPON_GUID_AT_ATTACH_POINT
Description not yet documented
0x6929E22158E52265 - WEAPONHash
_GET_PED_WEAPON_IN_SLOT
slotHash is usually just the weaponHash name, but WEAPON_* is replaced with SLOT_*
0xDBC4B552B2AE9A83 - WEAPONObject
_GET_PED_WEAPON_OBJECT
_GET_M* - _GET_PED_A*
0x6CA484C9A7377E4F - WEAPONHash
_GET_PED_WORST_WEAPON
Description not yet documented
0xDA37A053C1522F5D - WEAPONvoid
_GET_PLAYER_PED_QUICK_SWAP_WEAPON_BY_GUID
Outputs cached guids
0xB7E52A058B07C7E2 - WEAPONAny
_GET_PROJECTILE_IN_VOLUME
Finds a projectile entity inside the given Volume and writes its handle to the out pointer. Parameters: - volume: Volume to search in. - outEntity: [out] Receives the found projectile entity handle. Returns: - BOOL: true if a projectile was found and written; false otherwise. Notes: - Returns the first matching projectile the engine reports for that volume (order is unspecified). - Not limited to ignited projectiles (see 0x74C8000FDD1BB111 for the ignited-only variant). - The returned entity is typically an OBJECT; validate with ENTITY::DOES_ENTITY_EXIST. - Lua example: https://pastebin.com/ZgaUSEEP _GET_PO*
0x74C8000FDD1BB222 - WEAPONint
_GET_WEAPON_ATTACH_POINT
Returns WeaponAttachPoint
0xCAD4FE9398820D24 - WEAPONint
GET_WEAPON_CLIP_SIZE
Description not yet documented
0xD3750CCC00635FC2 - WEAPONHash
_GET_WEAPON_COMPONENT_TYPE_MODEL
Description not yet documented
0x59DE03442B6C9598 - WEAPONfloat
_GET_WEAPON_DAMAGE
Related to weapon visual damage, not actual damage.
0x904103D5D2333977 - WEAPONfloat
GET_WEAPON_DEGRADATION
0.0: good condition, 1.0: poor condition
0x0D78E1097F89E637 - WEAPONfloat
_GET_WEAPON_DIRT
Description not yet documented
0x810E8AE9AFEA7E54 - WEAPONint
_GET_WEAPON_EMOTE_VARIATION
Returns weaponEmoteVariation WEAPON_EMOTE_VARIATION_INVALID = -2, WEAPON_EMOTE_VARIATION_BASE, WEAPON_EMOTE_VARIATION_A, WEAPON_EMOTE_VARIATION_B, WEAPON_EMOTE_VARIATION_C, WEAPON_EMOTE_VARIATION_D, WEAPON_EMOTE_VARIATION_PREVIEW, WEAPON_EMOTE_NUM_VARIATIONS
0x86147D05FA831D3A - WEAPONHash
_GET_WEAPON_FROM_DEFAULT_PED_WEAPON_COLLECTION
this native gets the weapon hash from the default ped weapon collection (see GetDefaultPedWeaponCollection for more info) will randomly return one of it's weapons
0x9EEFD670F10656D7 - WEAPONHash
_GET_WEAPON_FROM_MOUNT
Returns the weapon hash stored in the first holster slot of the specified mount. returns 0 if no weapon or invalid
0xAFFD0CCF31F469B8 - WEAPONHash
_GET_WEAPON_GUN_SPINNING_WEAPON_EMOTE_TRICK_TYPE_HASH
Returns iSpinHash
0xF4601C1203B1A78D - WEAPONBOOL
_GET_WEAPON_HAS_MULTIPLE_AMMO_TYPES
Returns whether the weapon has multiple ammo types or not.
0x58425FCA3D3A2D15 - WEAPONAny
_GET_WEAPON_LAST_GIVEN
Returns the last weapon hash that was replaced due to a slot/holster swap when giving/equipping a weapon (set internally during weapon give/equip when another weapon gets displaced). If clear==true, the stored value is reset to 0 after reading (consume semantics); if clear==false, it is not cleared. Returns 0 if no replacement is pending.
0x9F0E1892C7F228A8 - WEAPONconst char*
_GET_WEAPON_NAME
Returns "WNS_INVALID" if the weapon is invalid/doesn't exist.
0x89CF5FF3D363311E - WEAPONconst char*
_GET_WEAPON_NAME_2
Description not yet documented
0x6D3AC61694A791C5 - WEAPONconst char*
_GET_WEAPON_NAME_WITH_PERMANENT_DEGRADATION
Description not yet documented
0x7A56D66C78D8EF8E - WEAPONObject
_GET_WEAPON_OBJECT_FROM_PED
Detaches the weapon from the ped and actually removes the ped's weapon
0xC6A6789BB405D11C - WEAPONfloat
GET_WEAPON_PERMANENT_DEGRADATION
Related to rust of weapons
0xD56E5F336C675EFA - WEAPONfloat
_GET_WEAPON_SCALE
Description not yet documented
0x22084CA699219624 - WEAPONfloat
_GET_WEAPON_SOOT
Description not yet documented
0x4BF66F8878F67663 - WEAPONHash
_GET_WEAPON_STAT_ID
Description not yet documented
0x8EC44AE8DECFF841 - WEAPONHash
_GET_WEAPON_TYPE_FROM_AMMO_TYPE
Description not yet documented
0x7AA043F6C41D151E - WEAPONHash
GET_WEAPONTYPE_GROUP
Description not yet documented
0xEDCA14CA5199FF25 - WEAPONHash
_GET_WEAPONTYPE_MODEL
Gets the model hash from the weapon hash.
0xF70825EB340E7D15 - WEAPONHash
_GET_WEAPONTYPE_SLOT
Returns hash where WEAPON_ is replaced with SLOT_
0x46F032B8DDF46CDE - WEAPONHash
_GET_WEAPON_UNLOCK
Description not yet documented
0x865F36299079FB75 - WEAPONvoid
GIVE_DELAYED_WEAPON_TO_PED
``` Gives a weapon to PED with a delay, example: WEAPON::GIVE_DELAYED_WEAPON_TO_PED(PED::PLAYER_PED_ID(), MISC::GET_HASH_KEY("WEAPON_PISTOL"), 1000, false) ```
0xB282DC6EBD803C75 - WEAPONvoid
_GIVE_WEAPON_COLLECTION_TO_PED
Description not yet documented
0x899A04AFCC725D04 - WEAPONvoid
_GIVE_WEAPON_COMPONENT_TO_ENTITY
entity can be a ped or weapon object.
0x74C9090FDD1BB48E - WEAPONvoid
_GIVE_WEAPON_COMPONENT_TO_WEAPON_OBJECT
Description not yet documented
0x1A47699E8D533E8F - WEAPONHash
GIVE_WEAPON_TO_PED
Gives the ped the weapon. List: https://github.com/femga/rdr3_discoveries/blob/master/weapons/weapons.lua Params: p7 is 0.5f, and p8 is 1.0f. p11 and p12 are both 0 in R* Scripts attachPoint: see SET_CURRENT_PED_WEAPON addReason: see _ADD_AMMO_TO_PED permanentDegradation: default 0.5, any higher than 0 it will automatically make the weapon worn, you can also adjust the value to change the weapons maximum cleanliness
0x5E3BDDBCB83F3D84 - WEAPONBOOL
GIVE_WEAPON_TO_PED_WITH_OPTIONS
Description not yet documented
0xBE7E42B07FD317AC - WEAPONBOOL
_HAS_ENTITY_BEEN_DAMAGED_BY_WEAPON
Description not yet documented
0xDCF06D0CDFF68424 - WEAPONBOOL
_HAS_ENTITY_BEEN_DAMAGED_BY_WEAPON_RECENTLY
Description not yet documented
0x9E2D5D6BC97A5F1E
A living reference. Documentation coverage varies by native and source.