karimsqualli96

server

Aug 30th, 2014
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. function teleport_player(x, y, z, interior, dimension)
  2.     setElementPosition(client, x, y, z)
  3.     setElementInterior(client, interior)
  4.     setElementDimension(client, dimension)
  5.     outputChatBox("[TELEPORTER] : you have been teleported to the desired location")
  6. end
  7. addEvent("teleportPlayer", true)
  8. addEventHandler("teleportPlayer", getResourceRootElement(), teleport_player)
Advertisement
Add Comment
Please, Sign In to add comment