handle error on GetPositionRaw

This commit is contained in:
georgey 2025-01-16 09:34:19 +11:00
parent 887c2945cb
commit b8f3185bdc

View File

@ -413,7 +413,11 @@ local vehicle_id = 0
local raw_pos, error = MP.GetPositionRaw(player_id, vehicle_id)
print(raw_pos)
if error == "" then
print(raw_pos)
else
print(error)
end
```
Output:
```json