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
- OBJECTvoid
0xBFFE53AE7E67FCDC
``` NativeDB Introduced: v1290 ```
0xBFFE53AE7E67FCDC - OBJECTvoid
0xC6033D32241F6FB5
Description not yet documented
0xC6033D32241F6FB5 - OBJECTvoid
0xC7F29CA00F46350E
See [`N_0x701fda1e82076ba4`](#\_0x701FDA1E82076BA4).
0xC7F29CA00F46350E - OBJECTvoid
0xD05A3241B9A86F19
``` NativeDB Introduced: v1180 ```
0xD05A3241B9A86F19 - OBJECTvoid
0xD4A7A435B3710D05
``` Adds an area that seems to be related to pickup physics behavior. Max amount of areas is 10. Only works in multiplayer. ADD_* NativeDB Introduced: v1290 ```
0xD4A7A435B3710D05 - OBJECTAny
0xDB41D07A45A6D4B7
Description not yet documented
0xDB41D07A45A6D4B7 - OBJECTvoid
0xE05F6AEEFEB0BB02
``` NativeDB Introduced: v1180 ```
0xE05F6AEEFEB0BB02 - OBJECTvoid
0xEB6F1A9B5510A5D2
Description not yet documented
0xEB6F1A9B5510A5D2 - OBJECTvoid
0xF92099527DB8E2A7
Description not yet documented
0xF92099527DB8E2A7 - OBJECTvoid
0xFDC07C58E8AAB715
A\* ``` NativeDB Introduced: v1734 ```
0xFDC07C58E8AAB715 - OBJECTvoid
ADD_DOOR_TO_SYSTEM
p5 only set to true in single player native scripts. Door hashes normally look like `PROP_[int]_DOOR_[int]` for interior doors and `PROP_BUILDING_[int]_DOOR_[int]` exterior doors but you can just make up your own hash if you want. If scriptDoor is true, register the door on the script handler host (note: there's a hardcap on the number of script IDs that can be added to the system at a given time). If scriptDoor and isLocal are both false, the door is considered to be in a "Persists w/o netobj" state. A simple "localized" door-system (with hundreds/thousands of doors) can be created by setting p5, p6, and p7 to false and using EventHandlers to synchronize the states to: [DOOR_SYSTEM_SET_DOOR_STATE](#\_0x6BAB9442830C7F53), [DOOR_SYSTEM_SET_OPEN_RATIO](#\_0xB6E6FBA95C7324AC), [DOOR_SYSTEM_SET_HOLD_OPEN](#\_0xD9B71952F78A2640), etc.
0x6F8838D03D1DC226 - OBJECTBOOL
ARE_ENTITIES_ENTIRELY_INSIDE_GARAGE
Description not yet documented
0x85B6C850546FDDE2 - OBJECTvoid
ATTACH_PORTABLE_PICKUP_TO_PED
Description not yet documented
0x8DC39368BDD57755 - OBJECTvoid
BREAK_OBJECT_FRAGMENT_CHILD
Description not yet documented
0xE7E4C198B0185900 - OBJECTvoid
_CLEAR_GARAGE_AREA
Description not yet documented
0xDA05194260CDCDF9 - OBJECTvoid
CLEAR_OBJECTS_INSIDE_GARAGE
Description not yet documented
0x190428512B240692 - OBJECTPickup
CREATE_AMBIENT_PICKUP
Creates an ambient pickup given the hash. Pickup hashes can be found [here](https://gist.github.com/4mmonium/1eabfb6b3996e3aa6b9525a3eccf8a0b).
0x673966A0C0FD7171 - OBJECTvoid
CREATE_MONEY_PICKUPS
``` Spawns one or more money pickups. x: The X-component of the world position to spawn the money pickups at. y: The Y-component of the world position to spawn the money pickups at. z: The Z-component of the world position to spawn the money pickups at. value: The combined value of the pickups (in dollars). amount: The number of pickups to spawn. model: The model to use, or 0 for default money model. Example: CREATE_MONEY_PICKUPS(x, y, z, 1000, 3, 0x684a97ae); Spawns 3 spray cans that'll collectively give $1000 when picked up. (Three spray cans, each giving $334, $334, $332 = $1000). ============================================== Max is 2000 in MP. So if you put the amount to 20, but the value to $400,000 eg. They will only be able to pickup 20 - $2,000 bags. So, $40,000 ```
0x0589B5E791CE9B2B - OBJECTAny
_CREATE_NON_NETWORKED_AMBIENT_PICKUP
``` NativeDB Introduced: v2372 ```
0x9C93764223E29C50 - OBJECTObject
CREATE_NON_NETWORKED_PORTABLE_PICKUP
Description not yet documented
0x125494B98A21AAF7 - OBJECTObject
CREATE_OBJECT
Creates an object (prop) with the specified model at the specified position, offset on the Z axis by the radius of the object's model. This object will initially be owned by the creating script as a mission entity, and the model should be loaded already (e.g. using REQUEST_MODEL).
0x509D5878EB39E842 - OBJECTObject
CREATE_OBJECT_NO_OFFSET
Creates an object (prop) with the specified model centered at the specified position. This object will initially be owned by the creating script as a mission entity, and the model should be loaded already (e.g. using REQUEST_MODEL).
0x9A294B2138ABB884 - OBJECTPickup
CREATE_PICKUP
Pickup hashes can be found [here](https://gist.github.com/4mmonium/1eabfb6b3996e3aa6b9525a3eccf8a0b).
0xFBA08C503DD5FA58 - OBJECTPickup
CREATE_PICKUP_ROTATE
``` Pickup hashes: pastebin.com/8EuSv2r1 flags: 8 (1 << 3): place on ground 512 (1 << 9): spin around ```
0x891804727E0A98B7 - OBJECTObject
CREATE_PORTABLE_PICKUP
Pickup hashes can be found [here](https://gist.github.com/4mmonium/1eabfb6b3996e3aa6b9525a3eccf8a0b).
0x2EAF1FDB2FB55698 - OBJECTvoid
DELETE_OBJECT
Deletes the specified object. **Note**: If for some reason the entity won't delete, you might want to check if the object is a mission entity. ``` NativeDB Introduced: v323 ```
0x539E0AE3E6634B9F - OBJECTvoid
DETACH_PORTABLE_PICKUP_FROM_PED
Description not yet documented
0xCF463D1E9A0AECB1 - OBJECTBOOL
DOES_OBJECT_OF_TYPE_EXIST_AT_COORDS
``` p5 is usually 0. ```
0xBFA48E2FF417213F - OBJECTBOOL
DOES_PICKUP_EXIST
Description not yet documented
0xAFC1CA75AD4074D1 - OBJECTBOOL
DOES_PICKUP_OBJECT_EXIST
Description not yet documented
0xD9EFB6DBF7DAAEA3 - OBJECTBOOL
DOES_PICKUP_OF_TYPE_EXIST_IN_AREA
Pickup hashes can be found [here](https://gist.github.com/4mmonium/1eabfb6b3996e3aa6b9525a3eccf8a0b).
0xF9C36251F6E48E33 - OBJECTBOOL
DOES_RAYFIRE_MAP_OBJECT_EXIST
``` Returns true if a destructible object with this handle exists, false otherwise. ```
0x52AF537A0C5B8AAD - OBJECTvoid
_DOOR_CONTROL
Hardcoded not to work in multiplayer environments. Native name between `SET_LOCAL_PLAYER_VISIBLE_LOCALLY` & `SET_MAX_WANTED_LEVEL`. ``` OBJECT::_9B12F9A24FABEDB0(${prop_gate_prison_01}, 1845.0, 2605.0, 45.0, 0, 0.0, 50.0, 0); //door unlocked OBJECT::_9B12F9A24FABEDB0(${prop_gate_prison_01}, 1845.0, 2605.0, 45.0, 1, 0.0, 50.0, 0); //door locked ```
0x9B12F9A24FABEDB0 - OBJECTBOOL
DOOR_SYSTEM_FIND_EXISTING_DOOR
Search radius: 0.5
0x589F80B325CC82C5 - OBJECTfloat
_DOOR_SYSTEM_GET_AUTOMATIC_DISTANCE
``` NativeDB Introduced: v1868 ```
0xE851471AEFC3374F - OBJECTint
DOOR_SYSTEM_GET_DOOR_PENDING_STATE
Description not yet documented
0x4BC2854478F3A749 - OBJECTint
DOOR_SYSTEM_GET_DOOR_STATE
Description not yet documented
0x160AA1B32F6139B8 - OBJECTBOOL
DOOR_SYSTEM_GET_IS_PHYSICS_LOADED
Description not yet documented
0xDF97CDD4FC08FD34 - OBJECTfloat
DOOR_SYSTEM_GET_OPEN_RATIO
Description not yet documented
0x65499865FCA6E5EC - OBJECTvoid
DOOR_SYSTEM_SET_AUTOMATIC_DISTANCE
Description not yet documented
0x9BA001CB45CBF627
A living reference. Documentation coverage varies by native and source.