[Release][ESX 1.x] Simple teleport


This is a simple teleport resource created on the ESX framework.

There is no greater science, but it is highly customizable and if the community wants it, i can be included conditions either by the type of work, amount of money, etc.


Installation

  1. Download the github repository
  2. Drop the files in your [resource] folder
  3. Don’t forget add start esx_simpletp in your server.cfg file
  4. Configure to your liking

If you have problems with this resource, let me know.
Remember to leave your :heart: in this post!

Video


https://streamable.com/bxlms

16 Likes

work it with teleporting cars or only players?

1 Like

@xMrSiret
Ops… thx for let me know!

I add this:

if not IsPedInAnyVehicle(player, false) then
	bla bla bla
end

But if you want it to only allow vehicle, remove not or just comment on the condition.

1 Like

where do u actually put the coords theres no config lua ?

@CoolKid
I didn’t see the need to create a Config.lua for a couple of variables, but I will implement it anyway.

this is already a thing dude

@BM-CUSTOMS
Please, I invite you to check the code…

1 Like

What do I write in config

nice man. looks better then alot of other tp scripts.

There is only 1 hardcoded location (enter/exit). How is this “highly customizable”?

This could also very easily be “standalone” as you only use some teleport function and “draw 3d text” from ESX, which is probably very simple code.

I advise you to actually make this customizable with a config file. If not, this is considered too simple and not up to quality standards.

1 Like

im not saying you copied it bro I was just point out :slight_smile:

where do u put coords?

@CoolKid

esx_simpletp/config.lua

Config.Teleport = {

	Enter = {
		Pos = {x = 287.75, y = -1095.07, z = 29.82},
		Heading = 357.43,
		View = 10.0,
		Activate = 1.0,
		Text = '~g~[Departament]\n~s~Press [E] to enter',
		Posout = {x = 265.16, y = -1002.65, z = -100.01}
	},
	
	Exit = {
		Pos = {x = 266.06, y = -1007.9, z = -100.71},
		Heading = 266.92,
		View = 5.0,
		Activate = 1.0,
		Text = '~g~[Departament]\n~s~Press [E] to exit',
		Posout = {x = 290.72, y = -1094.86, z = 28.41}
  }
}
1 Like

I can’t add more than one location. I am able to add one no problem but my second set of TP’s remove my first one.

config.lua (1.4 KB)

I changed them for me In tottal this are 3 teleport you can add more if you want to.

2 Likes

how can i add permissions?

1 Like

I dont understand, what you refers with permissions?

means just police or gang member can enter to the apartment

yes!!!

is there a way to make it so you can go in on foot but also tp in a car at the same time ?