State Cablecar Lines
Create complex cable car lines on your server and surprise your players with this new method of transportation in RedM!
Last updated
Create complex cable car lines on your server and surprise your players with this new method of transportation in RedM!
Last updated
This script is standalone, so it is fully compatible with any RedM framework.
The operation of the cable car is very simple:
We can create as many cable car lines as we want.
Each cable car line consists of a block in the configuration file whose values are described below:
id: The unique identifier for each cable car line. In this case: cablecar_1, cablecar_2...
Name: The name of the line. It will appear on the map with a blip.
model: The custom prop used in this case to act as a booth.
travelTime: The time it will take for the cable car to move from the start point to the end point in ms. The higher the value, the slower it will move.
activationDistance: Distance at which the 3D info text will be displayed. It is recommended not to touch.
zOffset: It is used to manually adjust the height of the cabin in case it appears too high or too low when generated.
patch: Here we´ll define all the coordinates we want our cable car to follow until it reaches its final point. It´s recommended to use a spooner to move the cabin and copy the coordinates, especially if you want it to follow the cable´s path.
callPoints: Here we´ll set the name and coordinates of the two points on the line from which we can call the cable car. The hover text that allows us to call the cable car will appear at these points.
seats: We set the coordinates of where we want to sit inside the cabin before starting the ride. By default, this cable car is designed for one person at a time, so we´ll only set one seat.
The package includes two premapped example lines in West Elizabeth and New Hanover, and also contains three custom props that you can use to create your own lines:
Custom "State Cable Car Line"
Gears to simulate the ends of the line.
A fairly long cable that you can combine to create the desired extension to the other point.
For this we hace a debug command which we can change in the config.lua file.
If we use it while inside our cabin it will show us the exact coordinates of our current position relative to the interior. These will help us delimit the seats.
First, we press the call point to make the cabin appear.
We get on the platform and position ourselves in the designated position.
Once positioned, the floating text will appear allowing us to begin the journey.
While the cable car is in operation, other players will not be able to call it and will see a message at the call point.
If you press the C key during the ride you will alternate between a custom cinema camera.
The cabin is fully synchronized with other connected players.
If the cabin has been called but is not in use, it will be automatically deleted after one minute.
If the cabin has already been used and 2 minutes pass, it will be deleted.