continue GetPositionRaw error handling

This commit is contained in:
georgey 2025-01-16 09:49:28 +11:00
parent 315c8d1f20
commit a00e8dc567

View File

@ -451,11 +451,15 @@ local player_id = 4
local vehicle_id = 0
local raw_pos, error = MP.GetPositionRaw(player_id, vehicle_id)
local x, y, z = table.unpack(raw_pos["pos"])
if error = "" then
local x, y, z = table.unpack(raw_pos["pos"])
print("X:", x)
print("Y:", y)
print("Z:", z)
print("X:", x)
print("Y:", y)
print("Z:", z)
else
print(error)
end
```
Output:
```