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.
This event is called when the game 2D rendering has started. This is the perfect place to render to the screen.
Name | Type | Description |
---|---|---|
scriptingRenderer | Renderer | The active renderer object |
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));
});
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.