Author Topic: Weapon: Cash Bag v.2 - 20% More Cash!  (Read 6981 times)

$ Cashbag v2 Update! $
$ 20% larger bag of cash!
$ Display Message when cash is picked up
$ Cash now auto-mounts to backslot when picked up

Maybe make events for it? Like OnCashBag hit or OnCashBagDrop? Maybe OnCashBagTouch?
That would be good for a cops & robbers server.

You should somehow make it not despawn when dropped. It always gets annoying when I kill someone far away, then have to get the money in 10 seconds.
« Last Edit: November 22, 2014, 04:53:23 PM by The Subject »

You should somehow make it not despawn when dropped. It always gets annoying when I kill someone far away, then have to get,the money in 10 seconds.
Type this in your console
$Game::Item::PopTime = 999999;

Maybe make events for it? Like OnCashBag hit or OnCashBagDrop? Maybe OnCashBagTouch?
That would be good for a cops & robbers server.
You can use VCE for this and another events called "ifItemInHand or ifItemInSlot"
Downloads Here and Here

The events are basic:
Code: [Select]
onPlayerTouch > self > ifItemInHandSlot > <item>
onVariableTrue > client > bottom print > You returned the cash!
onVariableTrue > player > removeItem > cashBag
onVariableTrue > player > incScore > 2
onVariableTrue > player > setPlayertype > <playertype default> (removes from backslot)
You will also need the removeItem event for this found Here

I will see about adding these events, its what I wanted to do in the first place I just haven't got around to it yet :p

The model could use a little work, but the whole thing overall is clever.