Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
У меня есть WH на ID каров как сделать его под чекбокс чтобы он активировался при включении чекбокса?
Lua:
local vkeys = require("vkeys")
local act = true
local font = renderCreateFont("Tahoma", 10, 5)
function main()
repeat wait(0) until isSampAvailable()
while true do
wait(0)
if isKeyJustPressed(vkeys.VK_F5) then
act = not act
end
if act then
for _, c_handle in pairs(getAllVehicles()) do
if isCarOnScreen(c_handle) then
local res, id = sampGetVehicleIdByCarHandle(c_handle)
if res then
local x,y,z = getCarCoordinates(c_handle)
local x1,y2 = convert3DCoordsToScreen(x,y,z)
renderFontDrawText(font,string.format('{9900FF}[id: %d]',id),x1,y2,-1)
end
end
end
end
end
end