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...