Advertisement
giwdul

gps_api

Jan 15th, 2024
690
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.20 KB | Source Code | 0 0
  1. os.loadAPI("gps") -- Import the GPS API
  2. local label, x, y, z = gps.locate() -- Get current position
  3. print("Current Position:")
  4. print("Label:", label)
  5. print("X:", x)
  6. print("Y:", y)
  7. print("Z:", z)
  8.  
Tags: gps_api
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement