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.

help me please

Discussion in 'DarkRP Modding Questions & Help' started by Scorpions, Sep 20, 2016.

  1. Scorpions

    Scorpions New Member

    hi, I'm trying to make it so that when you use entity the player added HP and cleaned the bleeding, but I don't know how to make that kit was not installed value, and taken away, ie, if the bleeding is 100 or less, in General were taken away bleeding from -20 each time, and did not establish bleeding = -20.
    Help please, how to do it?
    I'm a novice in lua.
    Sorry for my bad English.

    function ENT:Use( player, activator, caller )
    local bleeding = player:getDarkRPVar ( "bleeding" ) or 0
    player:getDarkRPVar("bleeding", 0)

    player:getDarkRPVar("bleeding", -20) not working as it should me, help me please!
  2. creator_2013

    creator_2013 New Member

    Maybe player:setDarkRPVar("bleeding", -20) or player:getDarkRPVar("bleeding") = -20?
  3. Pab14567

    Pab14567 Well-Known Member

    waiiiiit waaaaat, there's a darkrp var called bleeding?

    also pastebin and lua syntax highlighting would be nice along side the error + the full file

Share This Page