Client side script isnt working, need some help figuring out why

So I am writing a small client side script so to turn the cvar “r_drawmodeldecals” to “0” when they spawn. This is in an effort to stop the "“too many indices for index buffer, tell a programmer” crash bug. My code…

hook.Add("PlayerInitialSpawn", "F#*kingIndices", function(ply)
        ply:PrintMessage(HUD_PRINTTALK, "Working")
	ply:ConCommand("r_drawmodeldecals 0")

This is in my autorun/client/ directory. The player message isn’t even displaying so I feel like I made a big mistake (lua newb) and I am not noticing what I did. Any help would be appreciated. Side Note: This is being used on a server.

Thanks for any help in advance.

Doesn’t look clientside code to me, move it to autorun/server and that should work.

Im an idiot wow. Thanks lol.