So i'm trying to make a config but I keep getting an error.
In my shared.lua I have
[CODE]_C = _C or {}
_C.Player = {
JumpPower = 290,
HullMin = Vector( -16, -16, 0 ),
HullDuck = Vector( 16, 16, 45 ),
HullStand = Vector( 16, 16, 62 ),
ViewDuck = Vector( 0, 0, 47 ),
ViewStand = Vector( 0, 0, 64 )
}[/CODE]
And in my player_class
PLAYER.JumpPower = _C.Player.JumpPower
But I get this error:
[ERROR] gamemode/player_class/player_test.lua:14: attempt to index global '_C' (a nil value)
The player class is loaded before the shared file.
Sorry, you need to Log In to post a reply to this thread.