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.

little help..

Discussion in 'DarkRP Modding Questions & Help' started by GMOD Gaming Official, Jun 9, 2019.

  1. the notification is not being displayed when the limit is reached but it stops you spawning any more props.

    util.AddNetworkString( "notify" )

    hook.Add("PlayerSpawnProp","PropRestrict",function(ply)
    local count = ply:GetCount("props")
    local PropPly = ply
    if (ply:IsUserGroup("owner")) then
    if (count >= 60) then
    net.Start( "notify" )
    net.WriteString("You've hit the VIP prop limit!")
    net.Send(PropPly)
    return false
    end
    elseif (count >= 30) then
    net.Start( "notify" )
    net.WriteString("You've hit the prop limit of 30 become VIP for more!")
    net.Send(PropPly)
    return false
    end
    end)
     
  2. Communication

    Communication New Member

Share This Page