[Release] [ESX / QB] Simple Subway Script

A simple script to allow your players to use the subway. Players go to the ticket machine, buy a ticket, and then are taken to the selected station with a transition.

ESX and QbCore

Config

Config = {}

--Settings--
Config.Framework = "ESX" -- ESX / OBcore
Config.SubwayTimer = 10
--Settings--

--Marker Settings--
Config.MarkerSize = vector3(1, 1, 1)
Config.MarkerColor = {51, 255, 51}
Config.MarkerType = 27
--Marker Settings--

--Blip Settings--
Config.SubwayBlip = {Sprite = 513, Color = 39, Display = 2, Scale = 1.0, Title = "U-Bahn"}
Config.SubwayLocations = {
	Locations = {
		Coords = {
			vector3(-1012.76, -2755.96, -0.1), 
			vector3(-908.96, -2351.32, -4.52), 
			vector3(-541.8, -1281.44, 25.92), 
			vector3(278.92, -1205.48, 37.88), 
			vector3(-280.52, -304.4, 17.28), 
			vector3(-849.28, -134.52, 27.2), 
			vector3(-1342.4, -506.88, 22.28), 
			vector3(-465.08, -702.44, 19.04), 
			vector3(-215.2, -1034.12, 29.16), 
			vector3(113.28, -1725.72, 29.12), 
		}
	}
}
--Blip Settings--

Config.Stations = {
	{
		stationNumber = 1,
		name = "LSIA Terminal",
		price = 100,
		ticketBuy = vector3(-1012.76, -2755.96, -0.1),
		exitMetro = vector3(-1067.48, -2697.0, -7.4),
	},
	{
		stationNumber = 2,
		name = "LSIA Parking",
		price = 100,
		ticketBuy = vector3(-908.96, -2351.32, -4.52),
		exitMetro = vector3(-891.84, -2342.32, -11.72),
	},
	{
		stationNumber = 3,
		name = "Puerto Del Sol",
		price = 100,
		ticketBuy = vector3(-541.8, -1281.44, 25.92),
		exitMetro = vector3(-539.08, -1277.04, 26.92),
	},
	{
		stationNumber = 4,
		name = "Strawberry",
		price = 100,
		ticketBuy = vector3(278.92, -1205.48, 37.88),
		exitMetro = vector3(296.88, -1204.08, 38.88),
	},
	{
		stationNumber = 6,
		name = "Burton",
		price = 100,
		ticketBuy = vector3(-280.52, -304.4, 17.28),
		exitMetro = vector3(-295.16, -303.92, 10.08),
	},
	{
		stationNumber = 7,
		name = "Portola",
		price = 100,
		ticketBuy = vector3(-849.28, -134.52, 27.2),
		exitMetro = vector3(-838.96, -151.28, 19.96),
	},
	{
		stationNumber = 8,
		name = "Del Perro",
		price = 100,
		ticketBuy = vector3(-1342.4, -506.88, 22.28),
		exitMetro = vector3(-1351.0, -466.6, 15.04),
	},
	{
		stationNumber = 9,
		name = "Little Seoul",
		price = 100,
		ticketBuy = vector3(-465.08, -702.44, 19.04),
		exitMetro = vector3(-507.56, -673.92, 11.8),
	},
	{
		stationNumber = 10,
		name = "Pillbox South",
		price = 100,
		ticketBuy = vector3(-215.2, -1034.12, 29.16),
		exitMetro = vector3(-216.84, -1039.12, 30.16),
	},
	{
		stationNumber = 11,
		name = "Davis",
		price = 100,
		ticketBuy = vector3(113.28, -1725.72, 29.12),
		exitMetro = vector3(109.6, -1722.4, 30.12),
	},
}

Download:

Inspired: 🚂 [PAID][Standalone][ESX] Train ticket system - Teleportation | location configuration | UI
Design edit + Blip Settings + Framework added: [FREE] [ESX] vms_subway)

Code is accessible Yes
Subscription-based No
Lines (approximately) 300
Requirements ESX or QbCore
Support Yes/No
10 Likes

Looks similar?

[FREE] [ESX/Standalone] vms_subway - FiveM Resource Development & Modding / Releases - Cfx.re Community

2 Likes

This can only be seen if you have the direct link. Both are just a simple teleport script. There was also a script which costs money and also looks like this. Unfortunately do not have a link for this

Script ist OpenSource, so i do not sign anything.
If this Design by you there is no problem to link you. Its also Free and Post is unlisted.
The design was sent to me except for the map, which I created myself. Is yes the map from the game only I have added the logo of the transport company.

Why you don’t credit him tho ? On top of that the script you released is not working at all. The UI losses focus after you press to buy ticket !

1 Like

Because I didn’t know that the UI is very strong from him. The post is also unlisted and can only be seen with the link. I have added it after
Let me guess, you didn’t remove the -main from the folder name?

Really ? :rofl:

I’ve tried the original version and it’s working, so what’s wrong with yours ?

Do you remove -main from the folder name? The folder must be named subway and not subway-main

Are you mocking me or what’s happening ? That is the 1st thing you do when you add a script. Please leave it like that, i’ll use the original since you assume people are too dumb to even rename a script.

nothing against you but you don’t want to know how often that happens.

I told you that you lose focus of UI and you can’t do anytthing, i had to restart the script to release the UI …and yet you ask me if i removed the -main from the script’s name. Like i said i’ll use the version from the original creator and not your version since it’s broken.

looks interesting, nice :slight_smile:

yours is broke and locked at least his works lol

yea its doesn’t work, others users use and are happy :smiley:

nachm ticketkauf passiert leider nichts weiter