This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ---------------------------------------------------------------- | |
| -- 0) маяк сообщает в чат каждые ~10 сек, чтобы проверить загрузку | |
| ---------------------------------------------------------------- | |
| web.get('http://not-an-url', {filename = 'b:/nonexistent'}) | |
| ---------------------------------------------------------------- | |
| -- 1) универсальная отправка сообщения в общий чат | |
| ---------------------------------------------------------------- | |
| local function chat(msg) | |
| if ac and ac.sendChatMessage then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ---------------------------------------------------------------- | |
| -- Assetto Corsa • TimeAttack (client-side, CSP) by thxsomch | |
| -- Чат-формат: [TimeAttack] <CarName> (v <Version>) - <trackID> | M:SS.mmm | <PlayerName> | |
| -- Отправка в приёмник: GET /tap. | |
| ---------------------------------------------------------------- | |
| -- === 0) НАСТРОЙКИ === | |
| local HOST = "http://127.0.0.1:5005" -- адрес и порт приёмника (для примера локального сервера) | |
| local SECRET_KEY = "aiwfjud8awf8f2falwflafjkalw" -- ваш секретный ключ для подключения | |
| local SERVER_ID = "srv01" -- идентификатор сервера/пресета (для примера), можно писать что угодно |