bin\x64\plugins\cyber_engine_tweaks\mods\
otherwise they will not be loaded. You need to create a directory for your mod, we suggest you name it in snake case for uniformity (see the example below). init.lua
that will contain your initialization code. This is the only file that will be automatically loaded, it is mandatory that you name it init.lua
exactly.init.lua
you can register for events that will get called automatically, onInit
, onShutdown
, onUpdate
, onDraw
, onOverlayOpen
, onOverlayClose
via the registerForEvent(name, callback)
function.Is Player Naked?!
that prints every frame if the player is naked or not. We would create a directory called is_player_naked
and create an init.lua
file in it. You should have the fullpath bin\x64\plugins\cyber_engine_tweaks\mods\is_player_naked\init.lua
we can now add the following code in init.lua
.