1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Sign up for news, events and more!

    You're currently visiting the official DarkRP Forums as a guest. Sign up now to participate in our community and we'll let you know when we have news.

Change RPName

Discussion in 'DarkRP Modding Questions & Help' started by Emperor Penguin, Feb 10, 2020.

  1. Emperor Penguin

    Emperor Penguin New Member

    Why doesn’t it change the name of the player? It remains as it is

    hook.Add("PlayerInitialSpawn", "nassign_pc", function(ply)
    local rpname = names[math.random(1, #names)] .. " " .. surnames[math.random(1, #surnames)]
    DarkRP.storeRPName(ply, rpname)
    ply:setDarkRPVar("rpname", rpname)

Share This Page