• How stop a function (Many Notifications)
    6 replies, posted
Hi, i'm bad in English and more in lua Today i want to display a DarkRP:Notification but i have a Problem : There are Many Notifications --> https://files.facepunch.com/forum/upload/259617/2196352a-7c8f-4d34-bd3f-e6b2ba83a69c/hello.jpg And I want just this : ( Just 1 Notification) https://files.facepunch.com/forum/upload/259617/e831b7d6-3c6a-4262-9acd-c226883bc837/hello1.jpg How can i do in my function here please ? --> function ENT:Use(act, call)          local money = self:GetMoneyAmount()     self:SetMoneyAmount(0)     call:addMoney(money)          DarkRP.notify(act, 1, 3, 'hello') -- Why i have many Notifications ?     return -- the break and return true doesn't work too      end
You have many notification because you run that function many times (duh) I see you use ENT:Use which is ran every tick by default as long as the Use key is held on the entity. Open up the wiki on that function on how to fix that, something you should've done before posting here.
thanks but i have do this, the wiki don't give some help but give some example...
ENTITY/Use https://files.facepunch.com/forum/upload/106967/df88bb14-0469-47e2-b610-f654ef97d2bc/image.png
Thanks but i'ts my question : i'm new and i don't know how use this
try something. no one is going to spoonfeed you the solution, you won't learn anything that way.
Anyway thanks the post is SOLVED
Sorry, you need to Log In to post a reply to this thread.