mirror of
https://github.com/BeamMP/Docs.git
synced 2026-10-21 16:06:53 +00:00
handle error on GetPositionRaw
This commit is contained in:
1 parent
887c2945cb
commit
b8f3185bdc
1 file changed
+5
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user