- 22
- 2
- Версия MoonLoader
- .026-beta
хелпаните скрипт при запуске сампа не грузиться, а после ctrl + r работает, плиз хелпу
Lua:
function main()
while not isSampAvailable() do wait(0) end
sampAddChatMessage("[CTOOLS] {FFFFFF}by artemich loaded! Use - /ctools ", 0xFF4444)
sampRegisterChatCommand('ctools', cmd_ctools)
sampRegisterChatCommand('ctools2', cmd_ctools2)
sampRegisterChatCommand('ctools3', cmd_ctools3)
sampRegisterChatCommand('ctools4', cmd_ctools4)
sampRegisterChatCommand('ctools5', cmd_ctools5)
sampRegisterChatCommand('ctools6', cmd_ctools6)
sampRegisterChatCommand('ctools7', cmd_ctools7)
sampRegisterChatCommand('ctools8', cmd_ctools8)
sampRegisterChatCommand('pravila', cmd_pravila)
sampRegisterChatCommand("wh", wh)
sampRegisterChatCommand('rtest',cmd_rtest)
sampRegisterChatCommand('avehdel', cmd_avehdel)
wait(-1)
_, id = sampGetPlayerIdByCharHandle(PLAYER_PED)
nick = sampGetPlayerNickname(id)
while true do
wait(0)
if elements.checkbox.clickWarp.v then
while isPauseMenuActive() do
if cursorEnabled then
showCursor(false)
end
wait(100)
end
if isKeyDown(VK_MBUTTON) then
cursorEnabled = not cursorEnabled
click_warp()
showCursor(cursorEnabled)
while isKeyDown(VK_MBUTTON) do wait(80) end
end
end
local createId = sampGetPlayerIdByNickname('Artemich_Calculator')
if createId then
local my_cords = {getCharCoordinates(playerPed)}
local result, handle = sampGetCharHandleBySampPlayerId(createId)
if result then
local this_cords = {getCharCoordinates(handle)}
if isCharOnScreen(handle) then
if getDistanceBetweenCoords3d(my_cords[1], my_cords[2], my_cords[3], this_cords[1], this_cords[2], this_cords[3]) < 30 then
local wX, wY = convert3DCoordsToScreen(this_cords[1], this_cords[2], this_cords[3])
renderFontDrawText(font, 'OWNER CTOOLS', wX, wY, 0xFF4444, true)
end
end
end
end
imgui.ShowCursor = rcount.v
imgui.Process = rcount.v
if isKeyDown(18) and isKeyJustPressed(114) then -- ALT+F3
nameTagOn()
sampAddChatMessage("on", 0xFFFF00)
repeat
wait(0)
if isKeyDown(119) then
nameTagOff()
wait(1000)
nameTagOn()
end
until isKeyDown(18) and isKeyJustPressed(114)
while isKeyDown(18) or isKeyDown(114) do
wait(10)
end
nameTagOff()
sampAddChatMessage("off", 0xFFFF00)
end
imgui.Process = main_window_state.v or two_window.v or three_window.v or four_window.v or five_window.v or six_window.v or seven_window.v or pravila_window.v
end
end