Nametags.set

From RAGE Multiplayer Wiki
Revision as of 09:56, 2 October 2017 by Xylum (talk | contribs) (Removed the highlight row, as the entire function acts as the example.)

Requirements

  • Client side only.

Example:

This is a clientside function and only needs to be excuted once. It does not need to be called every frame.

Client-Side
mp.nametags.set({
    font: 6,
    outline: true,
    offset: 0.7,
    veh_offset: 1.0,
    color: [255, 255, 255, 255],
    size: 0.5,

    hbar: {
        size: [0.06, 0.008],
        color: [0, 0, 0, 0],
        bg_color: [0, 0, 0, 0]
    },
});

checkResolution();
  • The example code will set the nametag font, outline, offsets, colours and size. It will also change the colour of the health bar. Such settings can be adapted to remove the nametag/health bar.