ERROR: GAMEMODE:‘HUDPaint’ Failed: [@lua\includes\extensions\string.lua:34] bad argument #1 to ‘string_gmatch’ (string expected, got nil)
is spammed whenever a player joins the server and is spammed until the player hits esc or opens the console.
This is line 34 to the end of the function
for startPosition,endPosition in string_gmatch( str, "()" .. separator.."()" ) do ret[index] = string_sub( str, lastPosition, startPosition-1) index = index + 1 -- Keep track of the position lastPosition = endPosition end -- Add last part by using the position we stored ret[index] = string_sub( str, lastPosition) return ret end
There’s also an error when opening the spawn menu:
ERROR: GAMEMODE:‘OnSpawnMenuOpen’ Failed: [gamemodes\sandbox\gamemode\spawnmenu\spawnmenu.lua:91] attempt to call field ‘SpawnMenuOpen’ (a nil value)
This error only occurs when the player presses q and open the spawn menu.
Any way that this could possibly be fixed?