void SendDialogResponse(WORD wDialogID, BYTE bButtonID, WORD wListBoxItem = 65535, char *szInputResp = "")
{
BitStream bsSend;
BYTE respLen = static_cast<BYTE>(strlen(szInputResp));
bsSend.ResetWritePointer();
bsSend.Write(wDialogID);
bsSend.Write(bButtonID);
bsSend.Write(wListBoxItem);
bsSend.Write(respLen);
bsSend.Write(szInputResp, respLen);
SAMP->RPC(RPC_DialogResponse, &bsSend, HIGH_PRIORITY, RELIABLE_ORDERED, NULL, false);
}
// SendDialogResponse(id, 1);