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
- PEDint
GET_PED_COMBAT_MOVEMENT
Description not yet documented
0xDEA92412FCAEB3F5 - PEDint
GET_PED_COMBAT_RANGE
Description not yet documented
0xF9D9F7F2DB8E2FA0 - PEDBOOL
GET_PED_CONFIG_FLAG
See [`SET_PED_CONFIG_FLAG`](#\_0x1913FE4CBF41C463).
0x7EE53118C892B513 - PEDBOOL
_GET_PED_CURRENT_MOVEMENT_SPEED
Description not yet documented
0xF60165E1D2C5370B - PEDint
GET_PED_DECORATIONS_STATE
Description not yet documented
0x71EAB450D86954A1 - PEDint
GET_PED_DECORATION_ZONE_FROM_HASHES
```cpp enum ePedDecorationZone { ZONE_TORSO = 0, ZONE_HEAD = 1, ZONE_LEFT_ARM = 2, ZONE_RIGHT_ARM = 3, ZONE_LEFT_LEG = 4, ZONE_RIGHT_LEG = 5, ZONE_UNKNOWN = 6, ZONE_NONE = 7 }; ```
0x9FD452BFBE7A7A8B - PEDVector3
GET_PED_DEFENSIVE_AREA_POSITION
Description not yet documented
0x3C06B8786DD94CD1 - PEDBOOL
_GET_PED_DIES_IN_WATER
``` NativeDB Introduced: v2699 ```
0x65671A4FB8218930 - PEDint
GET_PED_DRAWABLE_VARIATION
``` Ids 0 - Head 1 - Beard 2 - Hair 3 - Torso 4 - Legs 5 - Hands 6 - Foot 7 - Scarfs/Neck Accessories 8 - Accessories 1 9 - Accessories 2 10- Decals 11 - Auxiliary parts for torso ```
0x67F3780DD425D4FC - PEDfloat
_GET_PED_EMISSIVE_INTENSITY
Use [`SetPedIlluminatedClothingGlowIntensity`](#\_0x4E90D746056E273D) to set the illuminated clothing glow intensity for a specific ped.
0x1461B28A06717D68 - PEDfloat
GET_PED_ENVEFF_SCALE
Description not yet documented
0x9C14D30395A51A3C - PEDBOOL
_GET_PED_EVENT_DATA
``` NativeDB Introduced: v2189 ```
0xBA656A3BB01BDEA3 - PEDVector3
GET_PED_EXTRACTED_DISPLACEMENT
``` Gets the offset the specified ped has moved since the previous tick. If worldSpace is false, the returned offset is relative to the ped. That is, if the ped has moved 1 meter right and 5 meters forward, it'll return 1,5,0. If worldSpace is true, the returned offset is relative to the world. That is, if the ped has moved 1 meter on the X axis and 5 meters on the Y axis, it'll return 1,5,0. ```
0xE0AF41401ADF87E3 - PEDint
_GET_PED_EYE_COLOR
A getter for [`_SET_PED_EYE_COLOR`](#\_0x50B56988B170AFDF).
0x76BBA2CEE66D47E9 - PEDint
GET_PED_GROUP_INDEX
``` Returns the group id of which the specified ped is a member of. ```
0xF162E133B4E7A675 - PEDvoid
_GET_PED_HAIR_RGB_COLOR
Input: Haircolor index, value between 0 and 63 (inclusive). Output: RGB values for the haircolor specified in the input. This is used with the hair color swatches scaleform. Use [`_0x013E5CFC38CD5387`](#\_0x013E5CFC38CD5387) to get the makeup colors.
0x4852FC386E2E1BB5 - PEDBOOL
GET_PED_HEAD_BLEND_DATA
``` The pointer is to a padded struct that matches the arguments to SET_PED_HEAD_BLEND_DATA(...). There are 4 bytes of padding after each field. pass this struct in the second parameter typedef struct { int shapeFirst, shapeSecond, shapeThird; int skinFirst, skinSecond, skinThird; float shapeMix, skinMix, thirdMix; } headBlendData; ```
0x2746BD9D88C5C5D0 - PEDint
GET_PED_HEAD_BLEND_FIRST_INDEX
``` Type equals 0 for male non-dlc, 1 for female non-dlc, 2 for male dlc, and 3 for female dlc. Used when calling SET_PED_HEAD_BLEND_DATA. ```
0x68D353AB88B97E0C - PEDint
GET_PED_HEAD_BLEND_NUM_HEADS
``` Type equals 0 for male non-dlc, 1 for female non-dlc, 2 for male dlc, and 3 for female dlc. ```
0x5EF37013A6539C9D - PEDint
GET_PED_HEAD_OVERLAY_NUM
``` Used with freemode (online) characters. ```
0xCF1CE768BB43480E - PEDint
_GET_PED_HEAD_OVERLAY_VALUE
``` Likely a char, if that overlay is not set, e.i. "None" option, returns 255; This might be the once removed native GET_PED_HEAD_OVERLAY. ```
0xA60EF3B6461A4D43 - PEDchar*
GET_PEDHEADSHOT_TXD_STRING
``` gtaforums.com/topic/885580-ped-headshotmugshot-txd/ ```
0xDB4EACD4AD0A5D6B - PEDint
GET_PED_HELMET_STORED_HAT_PROP_INDEX
Description not yet documented
0x451294E859ECC018 - PEDint
GET_PED_HELMET_STORED_HAT_TEX_INDEX
Description not yet documented
0x9D728C1E12BF5518 - PEDBOOL
GET_PED_LAST_DAMAGE_BONE
Description not yet documented
0xD75960F6BD9EA49C - PEDvoid
_GET_PED_MAKEUP_RGB_COLOR
Input: Makeup color index, value between 0 and 63 (inclusive). Output: RGB values for the makeup color specified in the input. This is used with the makeup color swatches scaleform. Use [`_0x4852FC386E2E1BB5`](#\_0x4852FC386E2E1BB5) to get the hair colors.
0x013E5CFC38CD5387 - PEDint
GET_PED_MAX_HEALTH
Description not yet documented
0x4700A416E8324EF3 - PEDint
GET_PED_MONEY
Description not yet documented
0x3F69145BBA87BAE7 - PEDint
GET_PED_NEARBY_PEDS
Console/PC structure definitions and example: pastebin.com/SsFej963 For FiveM/Cfx.Re use-cases refer to: [`GET_GAME_POOL`](#\_0x2B9D4F50).
0x23F8F5FC7E8C4A6B - PEDint
GET_PED_NEARBY_VEHICLES
``` Returns size of array, passed into the second variable. See below for usage information. This function actually requires a struct, where the first value is the maximum number of elements to return. Here is a sample of how I was able to get it to work correctly, without yet knowing the struct format. //Setup the array const int numElements = 10; const int arrSize = numElements * 2 + 2; Any veh[arrSize]; //0 index is the size of the array veh[0] = numElements; int count = PED::GET_PED_NEARBY_VEHICLES(PLAYER::PLAYER_PED_ID(), veh); if (veh != NULL) { //Simple loop to go through results for (int i = 0; i < count; i++) { int offsettedID = i * 2 + 2; //Make sure it exists if (veh[offsettedID] != NULL && ENTITY::DOES_ENTITY_EXIST(veh[offsettedID])) { //Do something } } } Here's the right way to do it (console and pc): pastebin.com/SsFej963 ```
0xCFF869CBFA210D82 - PEDint
GET_PED_PALETTE_VARIATION
Description not yet documented
0xE3DD5F2A84B42281 - PEDint
GET_PED_PARACHUTE_LANDING_TYPE
``` -1: no landing 0: landing on both feet 1: stumbling 2: rolling 3: ragdoll ```
0x8B9F1FC6AE8166C0 - PEDint
GET_PED_PARACHUTE_STATE
``` Returns: -1: Normal 0: Wearing parachute on back 1: Parachute opening 2: Parachute open 3: Falling to doom (e.g. after exiting parachute) Normal means no parachute? ```
0x79CFD9827CC979B6 - PEDvoid
GET_PED_PARACHUTE_TINT_INDEX
Description not yet documented
0xEAF5F7E5AE7C6C9D - PEDint
GET_PED_PROP_INDEX
Description not yet documented
0x898CC20EA75BACD8 - PEDint
GET_PED_PROP_TEXTURE_INDEX
Description not yet documented
0xE131A28626F81AB2 - PEDint
GET_PED_RAGDOLL_BONE_INDEX
Description not yet documented
0x2057EF813397A772 - PEDHash
GET_PED_RELATIONSHIP_GROUP_DEFAULT_HASH
Description not yet documented
0x42FDD0F017B1E38E - PEDHash
GET_PED_RELATIONSHIP_GROUP_HASH
Description not yet documented
0x7DBDD04862D95F04 - PEDBOOL
GET_PED_RESET_FLAG
Description not yet documented
0xAF9E59B1B1FBF2A0
A living reference. Documentation coverage varies by native and source.