Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("gps") -- Import the GPS API
- local label, x, y, z = gps.locate() -- Get current position
- print("Current Position:")
- print("Label:", label)
- print("X:", x)
- print("Y:", y)
- print("Z:", z)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement