Replace Entity with DarkRP Money

Hey guys I’m sure theres some way to this this but ive tried for about 30 minutes and still can figure it out, so is there any way instead of having { local temp = ents.Create(“adrug_weed”) } that entity spawn replace it to say drop like 1000 DarkRP dollars?

function ENT:Use(ent)
if(self.readyToHarvest==true) then
self.isPlanted=false
self.readyToHarvest=false
self:SetModel(“models/props_junk/terracotta01.mdl”)
self.plantHealth = 100
self.growthStage = 0
local temp = ents.Create(“adrug_weed”) ----- This line.
temp:SetPos(self:GetPos()+Vector(0,0,20))
temp:Spawn()

[lua]
function ENT:Use(activator, caller)
if self.readyToHarvest == true then
self.isPlanted=false
self.readyToHarvest=false
self:SetModel(“models/props_junk/terracotta01.mdl”)
self.plantHealth = 100
self.growthStage = 0
activator:addMoney(1000)
DarkRP.notify(activator, 1, 4, “You got $1000 from the plant!”)
end
end
[/lua]

Still giving me an error.

try activator:AddMoney(1000) instead of activator:addMoney(1000)

[editline]20th August 2015[/editline]

also you are doing it wrong.
it should be
ENT:Use(ent, activator)

It’s actually ENT:Use( Activator, Caller )
The problem is he added the addMoney and notification lines, but those lines use “activator” his hook is using “ent”

The code Pawsative provided would work.

Wait the code above dosent work what one should I use?

[editline]22nd August 2015[/editline]

NVM I got it thanks guys!