mirror of
https://github.com/BeamMP/Docs.git
synced 2026-06-18 06:40:54 +00:00
handle error on GetPositionRaw
This commit is contained in:
@@ -413,7 +413,11 @@ local vehicle_id = 0
|
|||||||
|
|
||||||
local raw_pos, error = MP.GetPositionRaw(player_id, vehicle_id)
|
local raw_pos, error = MP.GetPositionRaw(player_id, vehicle_id)
|
||||||
|
|
||||||
|
if error == "" then
|
||||||
print(raw_pos)
|
print(raw_pos)
|
||||||
|
else
|
||||||
|
print(error)
|
||||||
|
end
|
||||||
```
|
```
|
||||||
Output:
|
Output:
|
||||||
```json
|
```json
|
||||||
|
|||||||
Reference in New Issue
Block a user