Game Events

RAGE Plugin Hook Documentation

[This is preliminary documentation and is subject to change.]

The Game type exposes the following members.


Public eventStatic memberFrameRender

Called on each tick to gather render calls.

This is not called on each frame, but rather each game tick, and draw calls get queued for the frame renderer.
This allows natives to be called from here; however, you may see flickering in the rendering because of this.
To avoid this, you can use RawFrameRender which gets called on each frame, but won't allow native calls.

Public eventStatic memberCode exampleRawFrameRender

Called on each frame.

Natives cannot be called in here, and any attempt to may crash the game.

See Also