Player.GetInfo returning empty string.

Here’s my debug script:

[lua]me = player.GetByID(1)
print(me:GetInfo(“test_stuff_here”)…" blah")[/lua]

Before you ask; yes, I added “test_stuff_here” in gmod_cvars_cl.txt

In the console I do:

test_stuff_here test

and I execute the script.

It prints in the console:


but I should be getting:

test blah

A bug in the function? Or am I doing something wrong?


Make sure you have clientside:
[lua]CreateClientConVar(“test_stuff_here”, <string or number default>, false/true, true)[/lua]
make sure the last one is true or the server won’t be able to read it.

Thank your for the reply. It works now, I totally forgot about that function :S

Hi, I am Andres Kramack from

It’s a ‘pleasure’ serving the public if you know what I mean.

Here at Cathy Barry Adult Store, we offer a wide variety of dildos that come in all sizes from goblin-sized dicks to black-man draconic dicks. I know at Facepunch everyone loves good old dicks which is why I personally offer anyone with an association with Facepunch Forums a 50% discount code “DIL4FACEPUNCH”. Don’t forget, this offer lasts until the next Garry’s Mod update which we so much love.

Here are pictures of our products just for you!

Our wonderful sponsors:

Rubat approved: