local act = false
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
sampRegisterChatCommand('walk', function()
act = not act
end)
while true do
wait(0)
if act then
setVirtualKeyDown(87,true)
wait(0)
setVirtualKeyDown(87,false)
end
end
end