Cyberpunk2077.exe
is located, ideally you will put your files in a folder dedicated to that, for example official Cyber Engine Tweaks
files are located in plugins/cyber_engine_tweaks/scripts
, here we will assume you put your custom .lua
file in this scripts
folder.Game
object. Sample:player
handle:IsNaked
makes no sense without telling the engine for which object we want to know this information.gameTimeSystem
is a singleton so there is no need to tell the script engine which one you want. That being said you need a singleton handle so it knows you want to call a function on that system.player
by calling the global function Game.GetPlayer()
.