Thanks the problem was that I forgot to set dplay_localfunction for the client too (forgot to add it when implementing menu's etc.).