Перейти к содержанию

Nametags.set

Материал из RAGE MP Wiki Archive

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]
    },
});
  • 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.