local memory = require("memory")
local active = false
function main()
while not isSampAvailable() do wait(0) end
sampRegisterChatCommand("voda", function()
active = not active
if active then
printStringNow("~g~ON", 2000)
else
printStringNow("~r~OFF", 2000)
end
end)
while true do
wait(0)
if active and isCharInAnyCar(PLAYER_PED) then
memory.write(0x969152, 1, 4, true)
else
memory.write(0x969152, 0, 4, true)
end
end
end
function onScriptTerminate(scr, quitGame)
if scr == thisScript() then
memory.write(0x969152, 0, 4, true)
end
end