Documentation

Want to improve the docs? Take a look at scripting-api-data!
Found a bug? jc3mp/bugs is a good place to let us know.

GameUpdateRender

This event is called when the game 2D rendering has started. This is the perfect place to render to the screen.

Parameter

Name Type Description
scriptingRenderer Renderer The active renderer object

Example

jcmp.events.Add('GameUpdateRender', scriptingRenderer => {
  // Draw a red rectangle to the screen
  scriptingRenderer.DrawRect(new Vector2f(100, 100), new Vector2f(300, 300), new RGBA(255, 0, 0, 255));
});

Stay informed

By becoming the newest member of our growing forums, we and hundreds of other players will always keep you up to date on everything JC3:MP related.