CityRP Chatbox Error

I’m trying to set up a CityRP Gamemode but I get this error:


[ERROR] gamemodes/cityrp/gamemode/cl_init.lua:992: attempt to index global 'cityrp' (a nil value)

  1. unknown - gamemodes/cityrp/gamemode/cl_init.lua:992

Here’s the code:


		-- Set the position of the chat box.
		cityrp.chatBox.position = {x = 4, y = ScrH() - height - 8 - 20};
		if ( GetConVar( "cl_oldleft" ):GetInt() == 1 and ( ScrH() - bar.y  ) > height ) then
			cityrp.chatBox.position = {x = 4, y = bar.y - 8 - 20};
		end

Can anyone help??

“cityrp” doesn’t exist, either installed incorrectly, or calling in the wrong hook / wrong time / wrong realm, etc.

mySQL is not setup right

cityrp is nil because you used a clientside lua stealer lol

cityrp_www.fearlessrp.net_2014_2875, sounds legit.