CityRP Documentation Repository

core.plugins.maintenance.entities.cityrp_trashbag.shared

Name: "Maintenance Trash Bag". Product: "CityRP 2 (Roleplay)". Description: Bag of expired products from destocking a vending machine. Carry it (with your hands) to a CityRP rubbish bin for the maintenance payout.

Functions

SharedENT:Deposit(ply) → booleanSource ☍

Deposit this bag into a rubbish bin and pay the claiming player.

Parameters

  • plyPlayerThe player claiming the reward

Returns

  1. booleanthe deposit succeeded

Fields

SharedENT._depositedSource ☍
SharedENT.ModelSource ☍