- 2,140
- 1,900
- Версия MoonLoader
- .026-beta
Lua:
-- while true do**
for k, v in pairs(getAllVehicles()) do
local Px, Py, Pz = getCharCoordinates(PLAYER_PED)
local Cx, Cy, Cz = getCarCoordinates(v)
-- if (os.clock() - notif_clock) < 5 then
if (Px - Cx) < 2 then
sampSendChat('/lock')
end
wait(5500)
end
[17:13:53.249082] (error) test.lua: opcode '00AA' call caused an unhandled exception
stack traceback:
[C]: in function 'getCarCoordinates'
D:\GTA\GTASHKA\moonloader\AutoLOCK.lua:36: in function <D:\GTA\GTASHKA\moonloader\test.lua:22>
[17:13:53.249082] (error) test.lua: Script died due to an error. (233EA564)