Problems - Set rp name


When the player spawns in the server, he is getting a derma window where he is typing his name. But if the derma is run when the player initial spawn, the function setRPName gives a nil. But if i later opens the derma with a chat command(The chatcommands runs the same function as the intial spawn), it changes his name without a error.

I tried to delay the initial spawn with 20 seconds, trying to see if it was that darkrp functions hasnt been loaded or something.

you could use acecools PlayerFullyConnected hook.

Make sure you aren’t calling setRPName() on the serverside hook, since I assume the function is clientside.

If i call a function in the net.receive in the service file, every server function equals nil?