• Из-за обновления GTA 5 (был добавлен новый патч) может временно не работать вход в RAGE Multiplayer.

    ERROR: Your game version is not supported by RAGE Multiplayer.

    Данная ошибка говорит о том, что GTA V обновилась до новой версии (GTA Online тоже). Вам необходимо обновить саму игру в главном меню вашего приложения (Steam / Epic Games / Rockstar Games).
    Если после этого RAGE:MP все равно не работает - вам нужно дождаться выхода патча для самого мультиплеера (обычно это занимает от нескольких часов до нескольких дней).

    Новости и апдейты Rockstar Games - https://www.rockstargames.com/ru/newswire/
    Статус всех служб для Rockstar Games Launcher и поддерживаемых игр: https://support.rockstargames.com/ru/servicestatus


    Grand Theft Auto 5 (+ GTA Online) последний раз были обновлены:

Вопрос Как связать бота на js с сервером rage mp

Ilya Bochenin

Участник портала
Автор темы
28 Май 2022
87
8
23
Как связать бота на js с сервером rage mp? Например получение списка игроков или админов, видел библиотеку на c#, но там нету функции embed
 

XDeveluxe

Модератор
Команда форума
high coder
30 Авг 2021
2,220
1,425
191
27
Если речь о Discord боте, то на C# (Discord.Net) есть взаимодействие с Embed.

Вот мой пример, который облегчает взаимодействие с ними.
C#:
public static EmbedFieldBuilder CreateEmbedField(string name, string description, bool isInline = false)
{
    if (string.IsNullOrEmpty(name) || string.IsNullOrEmpty(description)) return null;

    return new EmbedFieldBuilder().WithName(name).WithValue(description).WithIsInline(isInline);
}

public static EmbedAuthorBuilder CreateEmbedAuthor(string iconUrl, string name)
{
    if (string.IsNullOrEmpty(name)) return null;

    EmbedAuthorBuilder author = new EmbedAuthorBuilder().WithName(name);
    if (!string.IsNullOrEmpty(iconUrl)) author.WithIconUrl(iconUrl);
    return author;
}

public static EmbedBuilder CreateEmbed(string title = null, string description = null, string url = null, string imageUrl = null, EmbedAuthorBuilder author = null, IEnumerable<EmbedFieldBuilder> fields = null, DateTimeOffset? timestamp = null, byte colorRed = 0, byte colorGreen = 0, byte colorBlue = 0)
{
    EmbedBuilder embed = new EmbedBuilder();

    if (!string.IsNullOrEmpty(title)) embed.WithTitle(title);
    if (!string.IsNullOrEmpty(description)) embed.WithDescription(description);
    if (author != null) embed.WithAuthor(author);
    if (fields != null && fields.Count() > 0) embed.WithFields(fields);
    if (timestamp != null) embed.WithTimestamp((DateTimeOffset)timestamp);
    if (!string.IsNullOrEmpty(url)) embed.WithUrl(url);
    if (!string.IsNullOrEmpty(imageUrl)) embed.WithImageUrl(imageUrl);

    embed.WithColor(colorRed, colorGreen, colorBlue);

    return embed;
}

Но это форум по RAGE, а не по Discord, так что либо я тебя не так понял, либо вопрос некорректен для данного форума.
 
Последнее редактирование: