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
- PHYSICSvoid
0x36CCB9BE67B970FD
``` ROPE_* ```
0x36CCB9BE67B970FD - PHYSICSBOOL
0x84DE3B5FB3E666F0
Description not yet documented
0x84DE3B5FB3E666F0 - PHYSICSvoid
0x9EBD751E5787BAF2
``` SET_* ```
0x9EBD751E5787BAF2 - PHYSICSvoid
0xA1AE736541B0FCA3
ROPE_\* ``` NativeDB Introduced: v1868 ```
0xA1AE736541B0FCA3 - PHYSICSvoid
0xB1B6216CA2E7B55E
Description not yet documented
0xB1B6216CA2E7B55E - PHYSICSvoid
0xB743F735C03D7810
``` ROPE_* ```
0xB743F735C03D7810 - PHYSICSvoid
0xBC0CE682D4D05650
``` Most likely ROPE_ATTACH_* ```
0xBC0CE682D4D05650 - PHYSICSvoid
0xCC6E963682533882
``` RESET_* ```
0xCC6E963682533882 - PHYSICSvoid
ACTIVATE_PHYSICS
Description not yet documented
0x710311ADF0E20730 - PHYSICSint
ADD_ROPE
``` Creates a rope at the specific position, that extends in the specified direction when not attached to any entities. __ Rope does NOT interact with anything you attach it to, in some cases it make interact with the world AFTER it breaks (seems to occur if you set the type to -1). Rope will sometimes contract and fall to the ground like you'd expect it to, but since it doesn't interact with the world the effect is just jaring. ``` There are 8 different rope types in the base game. Full rope data can be found in `ropedata.xml`. ```cpp enum ePhysicsRopeType { RopeThin = 0, // Verticies: 1, Radius: 0.03, Textures: rope & rope_n RopeWire6 = 1, // Verticies: 4, Radius: 0.015, Textures: steel_cable & steel_cable_n RopeWire32 = 2, // Verticies: 32, Radius: 0.025, Textures: steel_cable & steel_cable_n RopeMesh = 3, // Verticies: 6, Radius: 0.03, Textures: rope & rope_n RopeThinWire32 = 4, // Verticies: 32, Radius: 0.01, Textures: rope & rope_n RopeReins = 5, // Verticies: 32, Radius: 0.005, Textures: rope & rope_n RopeThin4 = 6, // Verticies: 4, Radius: 0.03, Textures: rope & rope_n RopeWire64 = 7 // Verticies: 64, Radius: 0.025, Textures: steel_cable & steel_cable_n } ```
0xE832D760399EB220 - PHYSICSvoid
APPLY_IMPULSE_TO_CLOTH
Description not yet documented
0xE37F721824571784 - PHYSICSvoid
ATTACH_ENTITIES_TO_ROPE
``` Attaches entity 1 to entity 2. ```
0x3D95EC8B6D940AC3 - PHYSICSvoid
ATTACH_ROPE_TO_ENTITY
``` The position supplied can be anywhere, and the entity should anchor relative to that point from it's origin. ```
0x4B490A6832559A65 - PHYSICSvoid
BREAK_ENTITY_GLASS
Description not yet documented
0x2E648D16F6E308F3 - PHYSICSvoid
DELETE_CHILD_ROPE
Description not yet documented
0xAA5D6B1888E4DB20 - PHYSICSvoid
DELETE_ROPE
Deletes the rope with the specified handle. You should check if the rope exists before trying to delete it, see [DOES_ROPE_EXIST](#\_0xFD5448BE3111ED96). For an example on how to use this native please refer to [ADD_ROPE](#\_0xE832D760399EB220)
0x52B4829281364649 - PHYSICSvoid
DETACH_ROPE_FROM_ENTITY
Description not yet documented
0xBCF3026912A8647D - PHYSICSBOOL
_DOES_ROPE_BELONG_TO_THIS_SCRIPT
Return if the rope was generated or not by the script where the native is called.
0x271C9D3ACA5D6409 - PHYSICSBOOL
DOES_ROPE_EXIST
For an example on how to use this native please refer to [ADD_ROPE](#\_0xE832D760399EB220)
0xFD5448BE3111ED96 - PHYSICSVector3
GET_CGOFFSET
Description not yet documented
0x8214A4B5A7A33612 - PHYSICSVector3
GET_DAMPING
``` NativeDB Introduced: v3407 ```
0x8C520A929415BCD2 - PHYSICSBOOL
_GET_HAS_OBJECT_FRAG_INST
``` GET_* ```
0x0C112765300C7E1E - PHYSICSVector3
GET_ROPE_LAST_VERTEX_COORD
Description not yet documented
0x21BB0FBD3E217C2D - PHYSICSVector3
GET_ROPE_VERTEX_COORD
Description not yet documented
0xEA61CA8E80F09E4D - PHYSICSint
GET_ROPE_VERTEX_COUNT
Description not yet documented
0x3655F544CD30F0B5 - PHYSICSvoid
LOAD_ROPE_DATA
``` Rope presets can be found in the gamefiles. One example is "ropeFamily3", it is NOT a hash but rather a string. ```
0xCBB203C04D1ABD27 - PHYSICSvoid
PIN_ROPE_VERTEX
Description not yet documented
0x2B320CF14146B69A - PHYSICSBOOL
ROPE_ARE_TEXTURES_LOADED
Description not yet documented
0xF2D0E6A75CC05597 - PHYSICSvoid
ROPE_CONVERT_TO_SIMPLE
Description not yet documented
0x5389D48EFA2F079A - PHYSICSvoid
ROPE_DRAW_SHADOW_ENABLED
Description not yet documented
0xF159A63806BB5BA8 - PHYSICSvoid
ROPE_FORCE_LENGTH
``` Forces a rope to a certain length. ```
0xD009F759A723DB1B - PHYSICSfloat
ROPE_GET_DISTANCE_BETWEEN_ENDS
Description not yet documented
0x73040398DFF9A4A6 - PHYSICSvoid
ROPE_LOAD_TEXTURES
``` Loads rope textures for all ropes in the current scene. ```
0x9B9039DBF2D258C1 - PHYSICSvoid
ROPE_RESET_LENGTH
``` Reset a rope to a certain length. ```
0xC16DE94D9BEA14A0 - PHYSICSvoid
ROPE_SET_UPDATE_ORDER
Description not yet documented
0xDC57A637A20006ED - PHYSICSvoid
ROPE_SET_UPDATE_PINVERTS
Description not yet documented
0xC8D667EE52114ABA - PHYSICSvoid
ROPE_UNLOAD_TEXTURES
``` Unloads rope textures for all ropes in the current scene. ```
0x6CE36C35C1AC8163 - PHYSICSvoid
SET_CG_AT_BOUNDCENTER
Description not yet documented
0xBE520D9761FF811F - PHYSICSvoid
SET_CGOFFSET
Description not yet documented
0xD8FA3908D7B86904 - PHYSICSvoid
SET_DAMPING
Description not yet documented
0xEEA3B200A6FEB65B
A living reference. Documentation coverage varies by native and source.