I’ve recently gotten into scripting, and am excited to release my first mod. I actually made this for a community I am a member of, and they mentioned they couldn’t find what they were looking for anywhere. This system is a very simple system for the smaller communities that have the same need, without having a developer.
This script allows you to specify 2 positions, and it will create the ability to teleport between those 2 points. All you need to do is specify the coordinates.
By default, it will create 2 spots in the middle of Alhambra.
All you have to do to customize the code is to follow the format already in the tables. Line 7 there is an example of what lines 4 and 5 are consisting of. You can add more than the 2 already created, or delete some.
No worries! I just tested it, it will remove the player from the vehicle and teleport just the player. I will work on a fix right now to teleport the vehicle if the player is in one.
Added ability to teleport with a vehicle or without. It will check, and if you are in a vehicle while inside the circle and press the specified button, it will teleport your vehicle
You could add a Citizen.Wait after the button is pressed. So after line 37 create a new line, and add Citizen.Wait(1000) for one second. You would need to do the same thing after line 49.