Clientside Auto Update hook?

I’m trying to change the text on a DarkRP F4 menu button.
[lua]
hook.Add( “InitPostEntity”, “initdrpa2”, function()
for k,v in pairs(DarkRPEntities) do
v.label = (v.label or v.name)
if v.level then
v.label = (v.label … ’ - Level '…v.level)
end
end
end)
[/lua]

That code works fine.
When I edit some other code and save it so Garry’s Mod auto refreshes, it doesn’t update, it just changes it to what it was before, because the F4 menu is being refreshed but my code isn’t. (presumably because entities aren’t being ‘reinitialized’)

What hook do I use?

Using your logic, if that loop was used again then it would add another ’ - Level #’ to the string.

I’d use InitPostEntity, and

Thanks a lot. I didn’t know that hook existed.