AddRope — FiveM Natives
0xE832D760399EB220 · PHYSICS · all
`` 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 } ``
Parameters
| Name | Type | Description |
|---|---|---|
| x | float | Spawn coordinate X component. |
| y | float | Spawn coordinate Y component. |
| z | float | Spawn coordinate Z component. |
| rotX | float | Rotation X component. |
| rotY | float | Rotation Y component. |
| rotZ | float | Rotation Z component. |
| maxLength | float | The maximum length the rope can droop. |