Advertisement
Guest User

reboot.lua

a guest
Apr 5th, 2020
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.49 KB | None | 0 0
  1. if os.loadAPI("myAPI.lua") then
  2.     print("Successfuly loaded myAPI")
  3.     myAPI.setBasePos(0,0,0,0)
  4.     local useGps = false
  5.     --???????? ????????? ????????? ???? ?? ?????
  6.     if useGps then
  7.         local x, y, z = gps.locate(1, false)
  8.         if not x then
  9.             print("Failed to get gps location")
  10.         else
  11.             print("Gps location established")
  12.             myAPI.setPos(x,y,z,0)
  13.             --???????? ???????? ???????????? ??????????? ????? ????????
  14.             --???????? ??????? ?? ????
  15.         end
  16.     end
  17. else
  18.     print("Failed to load myAPI")
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement