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") end)
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.