Events

Cyber Engine Tweaks has builtin events which can be listened using the registerForEvent() function. These listeners must be registered inside the init.lua file.

Keep in mind that CET events are not game events. For example, onInit doesn't mean the game the initializing, but rather that CET loaded mods and the game's Scripting API.

If you need to listen for game events, take a look at the Observers functions.

Definition

registerForEvent(event, callback)
--
-- registerForEvent()
--
-- @param  string    event     The event name
-- @param  function  callback  The callback function
--
registerForEvent('event', function()
    
    -- event is triggered
    
end)

Events Trigger Sequence

Here is a video showing when events are triggered in real-time:

Available Events

pageonInitpageonUpdatepageonDrawpageonOverlayOpenpageonOverlayClosepageonShutdownpageonTweak

Last updated