DarkRP Won't let me change name!

My code:


	print( text .. " from " .. id)
	for k, v in pairs(player.GetAll()) do
   		if v:SteamID() == id then
   			v:SetRPName("CP " .. math.random(1000,9999) .. " " .. text, false)
   			print(string.Explode( " ",v:Name() )[3])
   			
   			if text != string.Explode( " ",v:Name() )[3] then
   				net.Start("OpenSpawnMenu")
				net.Send(v)
   			else
   				sql.Query("INSERT INTO Melonos_FJ_NameSet (`steamid`) VALUES ('"..v:SteamID().."')")

   				print("CHECKING")
   				if( sql.Query("SELECT steamid FROM Melonos_FJ_NameSet WHERE steamid = '"..v:SteamID().."'") != v:SteamID() ) then
   					print("ERROR: Couldn't add player into Melonos_FJ_NameSet TABLE")
   				else
   					print("ADDED!")
   				end
   			end
   		end
	end


And the error:




[ERROR] lua/autorun/sv_starwarsname.lua:33: attempt to call method 'SetRPName' (a nil value)
  1. func - lua/autorun/sv_starwarsname.lua:33
   2. unknown - lua/includes/extensions/net.lua:32


“SetRPName” isn’t a valid function. Assuming you’re using the latest version of DarkRP, it should be setRPName not SetRPName. Capitals matter. Source

Ohh thanks!