[code]function ENT:CreateMoneybag()
if not ValidEntity(self) then return end
if self:IsOnFire() then return end
local MoneyPos = self:GetPos()
if math.random(1, 22) == 3 then self:BurstIntoFlames() end
local amount = GetGlobalInt("mprintamount")
if amount == 0 then
amount = 250
end
[/code]
I want to make the money printer put out a random amount of money everytime it outputs cash, any ideas?
[lua]-- math.random(low, high)
if amount == 0 then
amount = math.random(50, 250)
end[/lua]
I believe you want something like this?
Success thank you!
Sorry, you need to Log In to post a reply to this thread.