GreenHell Modding
Search…
Welcome to the GreenHell Modding docs!
TUTORIALS
How to install GreenHellModLoader
How to install a mod
Mods in multiplayer
MODDING TUTORIALS
How to create a mod project
How to create an AssetBundle
CLIENT - CODE EXAMPLES
Reading private variables
Modifying private variables
Accessing the player instance
Giving items to a player
Modifying the inventory max weight
Unlocking everything in the Notepad
Disabling player movement
Toggling the mouse/cursor
Printing to the console
WEBSITE
Slugs
Powered By GitBook
Accessing the player instance
In order to access the local player instance, we use the .Get() method from the Player class which returns the instance of the local player.
Player player = Player.Get();
CLIENT - CODE EXAMPLES - Previous
Modifying private variables
Next - CLIENT - CODE EXAMPLES
Giving items to a player
Last modified 2yr ago
Copy link