The FiveM 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 / FiveM
Native reference
- FILESint
0x6CEBE002E58DEE97
Returns some sort of index/offset for props. Needs \_GET_NUM_PROPS_FROM_OUTFIT to be called with p3 = true and componentId = -1 first, returns -1 otherwise. ``` NativeDB Introduced: v2189 ```
0x6CEBE002E58DEE97 - FILESint
0x96E2929292A4DB77
Returns some sort of index/offset for components. Needs \_GET_NUM_PROPS_FROM_OUTFIT to be called with p3 = false and componentId with the drawable's component slot first, returns -1 otherwise. ``` NativeDB Introduced: v2189 ```
0x96E2929292A4DB77 - FILESBOOL
DOES_SHOP_PED_APPAREL_HAVE_RESTRICTION_TAG
Description not yet documented
0x341DE7ED1D2A1BFD - FILESBOOL
GET_DLC_VEHICLE_DATA
The Second item in the struct `*(Hash *)(outData + 1)` is the vehicle hash.
0x33468EDC08E371F6 - FILESint
GET_DLC_VEHICLE_FLAGS
Description not yet documented
0x5549EE11FA22FCF2 - FILESHash
GET_DLC_VEHICLE_MODEL
``` dlcVehicleIndex is 0 to GET_NUM_DLC_VEHICLS() ```
0xECC01B7C5763333C - FILESHash
GET_DLC_VEHICLE_MOD_LOCK_HASH
Description not yet documented
0xC098810437312FFF - FILESBOOL
GET_DLC_WEAPON_COMPONENT_DATA
``` p0 seems to be the weapon index p1 seems to be the weapon component index struct DlcComponentData{ int attachBone; int padding1; int bActiveByDefault; int padding2; int unk; int padding3; int componentHash; int padding4; int unk2; int padding5; int componentCost; int padding6; char nameLabel[64]; char descLabel[64]; }; ```
0x6CF598A2957C2BF8 - FILESBOOL
_GET_DLC_WEAPON_COMPONENT_DATA_SP
Same as GET_DLC_WEAPON_COMPONENT_DATA but only works for DLC components that are available in SP. ``` NativeDB Introduced: v2060 ```
0x31D5E073B6F93CDC - FILESBOOL
GET_DLC_WEAPON_DATA
``` dlcWeaponIndex takes a number from 0 - GET_NUM_DLC_WEAPONS() - 1. struct DlcWeaponData { int emptyCheck; //use DLC1::_IS_DLC_DATA_EMPTY on this int padding1; int weaponHash; int padding2; int unk; int padding3; int weaponCost; int padding4; int ammoCost; int padding5; int ammoType; int padding6; int defaultClipSize; int padding7; char nameLabel[64]; char descLabel[64]; char desc2Label[64]; // usually "the" + name char upperCaseNameLabel[64]; }; ```
0x79923CD21BECE14E - FILESBOOL
_GET_DLC_WEAPON_DATA_SP
Same as GET_DLC_WEAPON_DATA but only works for DLC weapons that are available in SP. ``` NativeDB Introduced: v2060 ```
0x310836EE7129BA33 - FILESvoid
GET_FORCED_COMPONENT
Description not yet documented
0x6C93ED8C2F74859B - FILESvoid
GET_FORCED_PROP
Description not yet documented
0xE1CA84EBF72E691D - FILESHash
GET_HASH_NAME_FOR_COMPONENT
Description not yet documented
0x0368B3A838070348 - FILESHash
GET_HASH_NAME_FOR_PROP
Description not yet documented
0x5D6160275CAEC8DD - FILESint
GET_NUM_DLC_VEHICLES
Returns the total number of DLC vehicles.
0xA7A866D21CD2329B - FILESint
GET_NUM_DLC_WEAPON_COMPONENTS
``` Returns the total number of DLC weapon components. ```
0x405425358A7D61FE - FILESint
_GET_NUM_DLC_WEAPON_COMPONENTS_SP
Returns the total number of DLC weapon components that are available in SP. ``` NativeDB Introduced: v2060 ```
0xAD2A7A6DFF55841B - FILESint
GET_NUM_DLC_WEAPONS
``` Returns the total number of DLC weapons. ```
0xEE47635F352DA367 - FILESint
_GET_NUM_DLC_WEAPONS_SP
Returns the total number of DLC weapons that are available in SP (availableInSP field in shop_weapon.meta). ``` NativeDB Introduced: v2060 ```
0x4160B65AE085B5A9 - FILESint
GET_NUM_TATTOO_SHOP_DLC_ITEMS
``` Character types: 0 = Michael, 1 = Franklin, 2 = Trevor, 3 = MPMale, 4 = MPFemale ```
0x278F76C3B0A8F109 - FILESint
GET_SHOP_PED_APPAREL_FORCED_COMPONENT_COUNT
``` Returns number of possible values of the forcedComponentIndex argument of GET_FORCED_COMPONENT. ```
0xC6B9DB42C04DD8C3 - FILESint
GET_SHOP_PED_APPAREL_FORCED_PROP_COUNT
``` Returns number of possible values of the forcedPropIndex argument of GET_FORCED_PROP. ```
0x017568A8182D98A6 - FILESint
GET_SHOP_PED_APPAREL_VARIANT_COMPONENT_COUNT
Description not yet documented
0xC17AD0E5752BECDA - FILESint
_GET_SHOP_PED_APPAREL_VARIANT_PROP_COUNT
Description not yet documented
0xD40AAC51E8E4C663 - FILESvoid
GET_SHOP_PED_COMPONENT
``` More info here: https://gist.github.com/root-cause/3b80234367b0c856d60bf5cb4b826f86 ```
0x74C0E2A57EC66760 - FILESvoid
GET_SHOP_PED_OUTFIT
Description not yet documented
0xB7952076E444979D - FILESBOOL
GET_SHOP_PED_OUTFIT_COMPONENT_VARIANT
Description not yet documented
0x19F2A026EDF0013F - FILESint
GET_SHOP_PED_OUTFIT_LOCATE
Description not yet documented
0x073CA26B079F956E - FILESBOOL
GET_SHOP_PED_OUTFIT_PROP_VARIANT
Description not yet documented
0xA9F9C2E0FDE11CBB - FILESvoid
GET_SHOP_PED_PROP
Description not yet documented
0x5D5CAFF661DDF6FC - FILESvoid
GET_SHOP_PED_QUERY_COMPONENT
Description not yet documented
0x249E310B2D920699 - FILESvoid
GET_SHOP_PED_QUERY_OUTFIT
``` struct Outfit_s { int mask, torso, pants, parachute, shoes, misc1, tops1, armour, crew, tops2, hat, glasses, earpiece; int maskTexture, torsoTexture, pantsTexture, parachuteTexture, shoesTexture, misc1Texture, tops1Texture, armourTexture, crewTexture, tops2Texture, hatTexture, glassesTexture, earpieceTexture; }; ```
0x6D793F03A631FE56 - FILESvoid
GET_SHOP_PED_QUERY_PROP
Description not yet documented
0xDE44A00999B2837D - FILESBOOL
GET_TATTOO_SHOP_DLC_ITEM_DATA
Returns data that adheres to the tattoo shop item data that is used in shop_tattoo.meta Character types: ```cpp enum eTattooFaction { TATTOO_SP_MICHAEL = 0, TATTOO_SP_FRANKLIN = 1, TATTOO_SP_TREVOR = 2, TATTOO_MP_FM = 3, TATTOO_MP_FM_F = 4 } ``` Returned struct properties: ```cpp struct sTattooShopItemValues { // Lock hash, used with IS_CONTENT_ITEM_LOCKED int LockHash; // Unique ID of this slot. It can also be 0. int Index; // Collection hash of this tattoo int CollectionHash; // Preset hash of this tattoo int PresetHash; // Cost of this tattoo in shops. int Cost; // Secondary placement of this tattoo. int eFacing; // Location of this tattoo on the body (for example, for torso there would be chest upper, stomach, etc) int UpdateGroup; // This tattoo's name in the form of a text label. const char* NameTextLabel; }; ```
0xFF56381874F82086 - FILESint
GET_TATTOO_SHOP_DLC_ITEM_INDEX
``` NativeDB Introduced: v2189 ```
0x10144267DD22866C - FILESvoid
GET_VARIANT_COMPONENT
Description not yet documented
0x6E11F282F11863B6 - FILESvoid
_GET_VARIANT_PROP
Description not yet documented
0xD81B7F27BC773E66 - FILESvoid
INIT_SHOP_PED_COMPONENT
Description not yet documented
0x1E8C308FD312C036 - FILESvoid
INIT_SHOP_PED_PROP
Description not yet documented
0xEB0A2B758F7B850F
A living reference. Documentation coverage varies by native and source.