Hello, I am trying to create classes for my gamemode, but when i try to create my class it gives me this error: attempt to index global ‘PLAYER’ (a nil value). Here is the code:
AddCSLuaFile()
--Test Class--
local Test = {}
PLAYER.WalkSpeed = 100
PLAYER.RunSpeed = 250
function PLAYER:Loadout()
end
player_manager.RegisterClass( "test", Test, "player_default" )
Thank you for help in advance, and I can post more code if needed.