Dislaik
December 15, 2019, 6:50am
1
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
Download the github repository
Drop the files in your [resource] folder
Don’t forget add start esx_simpletp
in your server.cfg file
Configure to your liking
If you have problems with this resource, let me know.
Remember to leave your in this post!
Video
https://streamable.com/bxlms
https://streamable.com/bxlms
16 Likes
work it with teleporting cars or only players?
1 Like
Dislaik
December 15, 2019, 8:58am
3
@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
CoolKid
December 15, 2019, 9:30am
4
where do u actually put the coords theres no config lua ?
Dislaik
December 15, 2019, 10:04am
5
@CoolKid
I didn’t see the need to create a Config.lua for a couple of variables, but I will implement it anyway.
can you use this to tp vehicle aswell as players ??
this is already a thing dude
Dislaik
December 15, 2019, 10:16am
7
@BM-CUSTOMS
Please, I invite you to check the code…
1 Like
8Pepa
December 15, 2019, 10:17am
8
What do I write in config
nice man. looks better then alot of other tp scripts.
d0p3t
December 15, 2019, 10:46am
10
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
Dislaik
December 15, 2019, 6:16pm
13
@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
Ducker
December 19, 2019, 5:59am
14
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.
IAlterI
December 20, 2019, 7:30pm
15
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?
Zika
March 16, 2020, 3:22am
18
means just police or gang member can enter to the apartment
Pla-y
March 19, 2020, 3:28am
20
is there a way to make it so you can go in on foot but also tp in a car at the same time ?