Converting user messages to net messages?

I have seen Acecool’s converter, but I would like to change the core code. I am bad at Lua and wondering if someone could show me how to change the code below to net message?


function BANK_RestartCooldown( um )
	LocalPlayer().RobberyCooldown = CurTime() + um:ReadLong()
end
usermessage.Hook("BANK_RestartCooldown", BANK_RestartCooldown)


	umsg.Start("BANK_RestartTimer")
		umsg.Long(BANK_Custom_AliveTime * 60)
	umsg.End()



util.AddNetworkString("Bank_RestartTimer")

net.Start("Bank_RestartTimer")
net.WriteInt(BANK_Custom_AliveTime * 60, 32)
net.Send(ply)


It’s really simple. Obviously you need a player object as ply.