require 'lib.moonloader'
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
while true do
wait(0)
if isKeyDown (VK_P) and not isCursorActive() then
sampSendChat("/cars")
end
end
end