- 1,092
- 293
- Версия MoonLoader
- .026-beta
Всем здарова!
сам луа:
ошибка:
[ML] (error) infome.lua: opcode '06AC' call caused an unhandled exception
stack traceback:
[C]: in function 'getCharSpeed'
D:\GTA 140K BY DAPO SHOW\moonloader\infome.lua:59: in function <D:\GTA 140K BY DAPO SHOW\moonloader\infome.lua:56>
[ML] (error) infome.lua: Script died due to an error. (09BAD17C)
сам луа:
LUA:
require 'lib.moonloader'
local vkeys = require "vkeys"
local font = renderCreateFont('Verdana', 11, 12)
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
_, id = sampGetPlayerIdByCharHandle(PLAYER_PED)
nick = sampGetPlayerNickname(id)
myspeed_check()
myspeed = getCharSpeed(PLAYER_PED)
while true do
wait(0)
setPlayerFastReload(PLAYER_PED, true)
renderFontDrawText(font, 'my speed: ' .. myspeed, 1390, 810, 0xFFFFFFFF, 0x90000000)
end
end
function myspeed_check()
lua_thread.create(function()
while true do
wait(0)
myspeed = getCharSpeed(select(2, sampGetPlayerIdByCharHandle(PLAYER_PED)))
end
end)
end