Hello, Guest

By registering with us, you'll be able to discuss, share and private message with other members of our community.
What's new

Adding Static to the redage v3 Rage:MP Build

Alexalsaud

Administrative
Staff member
Admin
Joined
Aug 5, 2024
Messages
337
ICoins
1,501

Adding Static to the redage v3 Rage:MP Build


In the file - RedAge\src_client\player\gamertag.js replace the SetNameTag function

JavaScript:
const SetNameTag = (player) => {
try {

if (!player || !mp.players.exists(player))
return;

if (player['INVISIBLE'] || player['HideNick']) {
player.nameTag = false;
} else {
let uuid = `~n~#${player['UUID']}`;

if (player['REDNAME']) {
player.nameTag = `~r~${player.name.replace('_', ' ')} (${player.remoteId})` + uuid;
} else {
player.nameTag = global.getName(player) + uuid;
}

player.nameWidth = ((text, font, scale) => (
mp.game.ui.setTextEntryForWidth("STRING"),
mp.game.ui.addTextComponentSubstringPlayerName(text),
mp.game.ui.setTextFont(font),
mp.game.ui.setTextScale(scale, scale),
mp.game.ui.getTextScreenWidth(true)
))(player.nameTag, nameSettings.font, nameSettings.scale);

player.nameHeight = mp.game.ui.getTextScaleHeight(nameSettings.scale, nameSettings.font);

}
}
catch (e)
{
mp.events.callRemote("client_trycatch", "player/gametag", "SetNameTag", e.toString());
}
}

In the same file, add the UUID to the eventsName variable.
Code:
const eventsData = [
{name: "ALVL"},
{name: "AGM"},
{name: "DMGDisable"}, {name: "VoiceZone"}, {name: "leader"},
{name: "INVISIBLE", updateNameTag: true},
{name: "HideNick", updateNameTag: true},
{name: "InDeath"},
{name: "AFK_STATUS"},
{name: "vmuted"},
{name: "isWhisper"},
{name: "isDeaf"},
{name: "PlayerAirsoftTeam"},
{name: "REDNAME", updateNameTag: true},
{name: "fraction", updateNameTag: true, updateName: true},
{name: "organization", updateNameTag: true, updateName: true}), {name: "IS_MASK", updateNameTag: true, updateName: true},
{name: "NewUser"},
{name: "SZ"}, //SafeZone
{name: "warType"},
{name: "Oldl"},
-];
{name: "Old2"},
{name: "Old3"},
{name: "UUID"},

In the file - RedAge\dotnet\resources\NeptuneEvo\Main.cs find the function - ClientEvent_Spawn and add 1 line in it after:

JavaScript:
player.SetSharedData("InDeath", false); // после этой
player.SetSharedData("UUID", characterData.UUID); // добавили эту

  1. Don't forget to rebuild dotnet and build src_client.
 
Back
Top