- 9
- 5
- Версия SA-MP
-
- Любая
Lets you replace the default T key that opens the SA-MP chat input with any key you want. The key is saved between sessions so you don't have to set it again every time.
Usage
/chatkey — opens the key capture window, press any key to assign it.
Experimental
The script patches the T key hardcoded inside samp.dll directly via memory write (0x74 → 0xEB) so the client stops opening chat on its own — this is version-specific and only works on R3 and R5. On any other version it falls back to intercepting the input manually via sampSetChatInputEnabled.
The UI strings are automatically translated to the user's system language at runtime using Google Translate's free endpoint. The target language and encoding (CP1251, ISO-8859-7, etc.) are resolved through GetUserDefaultUILanguage and GetLocaleInfoA via FFI calls to user32 and kernel32 — no external config needed. Translation is async so it doesn't block the script on startup.
Author: Niourozi
Usage
/chatkey — opens the key capture window, press any key to assign it.
Experimental
The script patches the T key hardcoded inside samp.dll directly via memory write (0x74 → 0xEB) so the client stops opening chat on its own — this is version-specific and only works on R3 and R5. On any other version it falls back to intercepting the input manually via sampSetChatInputEnabled.
The UI strings are automatically translated to the user's system language at runtime using Google Translate's free endpoint. The target language and encoding (CP1251, ISO-8859-7, etc.) are resolved through GetUserDefaultUILanguage and GetLocaleInfoA via FFI calls to user32 and kernel32 — no external config needed. Translation is async so it doesn't block the script on startup.
Author: Niourozi