Либо можно так
$~Enter::
if (isInChat() = 1)
sleep 250
dwAddress := dwSAMP + 0x12D8F8
chatInput := readString(hGTA, dwAddress, 256)
if chatInput contains /invv
RegExMatch(chatInput, "^/invv (.*)", x)
if (x1 = "")
Sleep 1
SendMessage, 0x50,, 0x4190419,, A
Sleep 300
*Тут отыгровка*
Sleep 1000...