require "lib.moonloader"
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(300) end
sampAddChatMessage('Test test test test test',-1)
while true do wait(0)
if isKeyJustPressed(0x4C) and not sampIsChatInputActive() and not sampIsDialogActive() then
sampSendChat("/lock")
end
if isKeyJustPressed(0x06) and not sampIsChatInputActive() and not sampIsDialogActive() then
sampSendChat("/callcar a000me")
end
if isKeyJustPressed(0x49) and not sampIsChatInputActive() and not sampIsDialogActive() then
sampSendChat('/inv')
end
if isKeyJustPressed(0x05) and not sampIsChatInputActive() and not sampIsDialogActive() then
sampSendChat("/hveh")
end
end
end