Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.69 KB | None | 0 0
  1. addCommandHandler( "gotopershing",
  2. function( thePlayer, commandName )
  3.         for key, value in ipairs( getElementsByType( "player" ) ) do
  4.         if hasObjectPermissionTo( value, "command.staffduty", false ) then
  5.             setElementInterior( thePlayer, 0 )
  6.             setElementDimension( thePlayer, 0 )
  7.             setElementPosition( thePlayer, 1521.11, -1714.38, 13.54 )
  8.            
  9.             outputChatBox ( "You have teleported to Pershing Square!", getRootElement(), 0, 255, 0, false )
  10.         end
  11.     end
  12. end
  13. )
  14.  
  15. addCommandHandler( "gotoganton",
  16. function( thePlayer, commandName )
  17.         for key, value in ipairs( getElementsByType( "player" ) ) do
  18.         if hasObjectPermissionTo( value, "command.staffduty", false ) then
  19.             setElementInterior( thePlayer, 0 )
  20.             setElementDimension( thePlayer, 0 )
  21.             setElementPosition( thePlayer, 2226.59, -1721.91, 13.55 )
  22.            
  23.             outputChatBox ( "You have teleported to Ganton!", getRootElement(), 0, 255, 0, false )
  24.         end
  25.     end
  26. end
  27. )
  28.  
  29. addCommandHandler( "gotoseville",
  30. function( thePlayer, commandName )
  31.         for key, value in ipairs( getElementsByType( "player" ) ) do
  32.         if hasObjectPermissionTo( value, "command.staffduty", false ) then
  33.             setElementInterior( thePlayer, 0 )
  34.             setElementDimension( thePlayer, 0 )
  35.             setElementPosition( thePlayer, 2721.87, -2000.7, 13.55 )
  36.            
  37.             outputChatBox ( "You have teleported to Seville!", getRootElement(), 0, 255, 0, false )
  38.         end
  39.     end
  40. end
  41. )
  42.  
  43. addCommandHandler( "gotojefferson",
  44. function( thePlayer, commandName )
  45.         for key, value in ipairs( getElementsByType( "player" ) ) do
  46.         if hasObjectPermissionTo( value, "command.staffduty", false ) then
  47.             setElementInterior( thePlayer, 0 )
  48.             setElementDimension( thePlayer, 0 )
  49.             setElementPosition( thePlayer, 2227.83, -1143.74, 25.79 )
  50.            
  51.             outputChatBox ( "You have teleported to Jefferson!", getRootElement(), 0, 255, 0, false )
  52.         end
  53.     end
  54. end
  55. )
  56.  
  57. addCommandHandler( "gotobank",
  58. function( thePlayer, commandName )
  59.         for key, value in ipairs( getElementsByType( "player" ) ) do
  60.         if hasObjectPermissionTo( value, "command.staffduty", false ) then
  61.             setElementInterior( thePlayer, 0 )
  62.             setElementDimension( thePlayer, 0 )
  63.             setElementPosition( thePlayer, 590.86, -1240.65, 17.87 )
  64.            
  65.             outputChatBox ( "You have teleported to Los Santos Bank!", getRootElement(), 0, 255, 0, false )
  66.         end
  67.     end
  68. end
  69. )
  70.  
  71. addCommandHandler( "gotovinewood",
  72. function( thePlayer, commandName )
  73.         for key, value in ipairs( getElementsByType( "player" ) ) do
  74.         if hasObjectPermissionTo( value, "command.staffduty", false ) then
  75.             setElementInterior( thePlayer, 0 )
  76.             setElementDimension( thePlayer, 0 )
  77.             setElementPosition( thePlayer, 1374.25, -922.76, 34.39 )
  78.            
  79.             outputChatBox ( "You have teleported to Vinewood!", getRootElement(), 0, 255, 0, false )
  80.         end
  81.     end
  82. end
  83. )
  84.  
  85. addCommandHandler( "gotosantamaria",
  86. function( thePlayer, commandName )
  87.         for key, value in ipairs( getElementsByType( "player" ) ) do
  88.         if hasObjectPermissionTo( value, "command.staffduty", false ) then
  89.             setElementInterior( thePlayer, 0 )
  90.             setElementDimension( thePlayer, 0 )
  91.             setElementPosition( thePlayer, 369.85, -2047.74, 7.83 )
  92.            
  93.             outputChatBox ( "You have teleported to Santa Maria Beach!", getRootElement(), 0, 255, 0, false )
  94.         end
  95.     end
  96. end
  97. )
  98.  
  99. addCommandHandler( "gotoash",
  100. function( thePlayer, commandName )
  101.         for key, value in ipairs( getElementsByType( "player" ) ) do
  102.         if hasObjectPermissionTo( value, "command.staffduty", false ) then
  103.             setElementInterior( thePlayer, 0 )
  104.             setElementDimension( thePlayer, 0 )
  105.             setElementPosition( thePlayer, 1185.38, -1323.86, 13.57 )
  106.            
  107.             outputChatBox ( "You have teleported to All Saints Hospital!", getRootElement(), 0, 255, 0, false )
  108.         end
  109.     end
  110. end
  111. )
  112.  
  113. addCommandHandler( "gotoairport",
  114. function( thePlayer, commandName )
  115.         for key, value in ipairs( getElementsByType( "player" ) ) do
  116.         if hasObjectPermissionTo( value, "command.staffduty", false ) then
  117.             setElementInterior( thePlayer, 0 )
  118.             setElementDimension( thePlayer, 0 )
  119.             setElementPosition( thePlayer, 1969.15, -2175.11, 13.54 )
  120.            
  121.             outputChatBox ( "You have teleported to Los Santos International Airport!", getRootElement(), 0, 255, 0, false )
  122.         end
  123.     end
  124. end
  125. )
  126.  
  127. addCommandHandler( "gotoigs",
  128. function( thePlayer, commandName )
  129.         for key, value in ipairs( getElementsByType( "player" ) ) do
  130.         if hasObjectPermissionTo( value, "command.staffduty", false ) then
  131.             setElementInterior( thePlayer, 0 )
  132.             setElementDimension( thePlayer, 0 )
  133.             setElementPosition( thePlayer, 1934.42, -1762.24, 13.54 )
  134.            
  135.             outputChatBox ( "You have teleported to Idlewood Gas Station!", getRootElement(), 0, 255, 0, false )
  136.         end
  137.     end
  138. end
  139. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement