Can it be carried with a vehicle?
Is there a way to make specific teleports allow vehicle entrances but then others not? if so how would one do that please?
Thanks, helps a lot.
Hello. Are there opportunities for teleportation to cost money? I would like you to deduct a certain amount from the player’s cash when teleporting there.
If not, how can this be changed to make this possible? Thanks for the answers in advance too!
Yo, I like your script but I can’t add more locations. I think i’ve not forgot “,” or “{” so I don’t know. Can someone help me please. Thanks
How to add mutli teleports
so i try to add another location and it works but then the other one does not how can i fix this?
esx_simpletp > client > main.lua
Line 17 edit this:
if GetDistanceBetweenCoords(coords, v.Pos.x, v.Pos.y, v.Pos.z, true) < v.View then
To this:
if ESX.PlayerData.job and ESX.PlayerData.job.name == Config.Permission and GetDistanceBetweenCoords(coords, v.Pos.x, v.Pos.y, v.Pos.z, true) < v.View then
Then go to esx_simpletp > config.lua and add this line:
Config.Permission = 'police'
esx_simpletp > config.lua
Check the code. For example now there is 3 teleports. I dont think you can use custom names for them. Always use Enter + Exit, Enter2 + Exit2, Enter3 + Exit3 and so on…
Config.Teleport = {
-- First 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}
},
-- Second teleport
Enter2 = {
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}
},
Exit2 = {
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}
},
-- Third teleport and so on..
Enter3 = {
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}
},
Exit3 = {
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}
}
}
Dislaik thank you so much for this script. I have been using it for a long time. Love it!