Render(JS) Tick(CSharp): Difference between revisions

From RAGE Multiplayer Wiki
(Created Render Event Documentation.)
 
m (Add nametag parameter to render client event)
Line 2: Line 2:


This event is similar to an OnUpdate in the GTA:Network C# Code, event where the function/event is called every tick on the server.
This event is similar to an OnUpdate in the GTA:Network C# Code, event where the function/event is called every tick on the server.
==Parameters==
* '''nametags (Optional)'''


==Example==
==Example==

Revision as of 22:11, 22 June 2018

This event is every frame on the client only, this does event is not accessible on the server.

This event is similar to an OnUpdate in the GTA:Network C# Code, event where the function/event is called every tick on the server.

Parameters

  • nametags (Optional)

Example

Client-Side
mp.events.add('render', () => {
    mp.game.graphics.drawText('This is called every frame.', [0.5, 0.005], 
    {
      font: 4,
      color: [255, 255, 255, 255],
      scale: [1.0, 1.0],
      outline: true
    });
});

See also

Checkpoint

Colshape

Entity

Player

Streaming

Vehicle

Waypoint