Tutorial / Tools > World
Make Trashcan
Place a trashcan, or make any prop one: players throw things away in it.
What it does
Make Trashcan places a trashcan, or turns a prop into one. Players press E on a trashcan to open the Trash window. From there they throw things from Your backpack and Your pockets away.
Thrown things stay in the trashcan for a while, then they are deleted. Until then, anyone can see and take them (by default). The In the trash list shows who threw each item and when it will be gone.
Trashcans are kept for the map. Trashcans you place belong to nobody: no undo, no cleanup, and nothing removes them but reload with this tool.
Where to find it
Q menu > KGX's Admin Toolbox > World > Make Trashcan.
Toolbox admins can use it. Superadmins can also give it to players in Settings > Player Access: players place trashcans up to their limit (Settings > Limits, "Trashcans", 2), turn only their own props into trashcans, and remove only their own. Players use trashcans with E.
Given to a player (v3.6.11.3): Their own trashcans (limit).
Controls
| Key | What it does |
|---|---|
| Left-click | Place a trashcan (the model picked below) |
| Right-click | Make the aimed prop a trashcan (a spawned prop becomes a trashcan of its own) |
| Reload | Remove the aimed trashcan (map / permanent props: a normal prop again) |
The screen shows Trashcan or Not a trashcan for the entity under your crosshair.
Options
| Option | What it does | Default |
|---|---|---|
| Model icons | Click a model to use it for new trashcans. Models of games you do not have (Counter-Strike, Left 4 Dead) are not shown. | models/props_trainstation/trashcan_indoor001b.mdl |
| Scan map props (pick one the map uses) | Lists trash bins, dumpsters and similar props the map uses, and sets the one you pick as the model. |
How to use it
Place a new trashcan
- Click a model in the panel.
- Aim at the floor and left-click. The trashcan stands on the spot, facing you.
Turn a map bin into a trashcan
- Aim at a trash bin that is part of the map.
- Right-click. It stays a map prop and becomes a trashcan, kept for this map.
Turn your own prop into a trashcan
- Spawn and place the prop.
- Right-click it. It is replaced by a trashcan of its own with the same look and spot.
- It is no longer your prop: undo and cleanup do not remove it.
Remove a trashcan
- Aim at it and press reload.
- A placed trashcan is removed. A map prop or permanent prop becomes a normal prop again.
- Either way, what was in it is gone.
Settings and commands
Change these in Settings > Furniture & Buffs (superadmins).
| Setting | What it does | Default | Range |
|---|---|---|---|
kgxat_trash_time |
Seconds before things thrown in a trashcan are deleted. 0 = deleted at once. Shown as Seconds until thrown away things are deleted (0 = at once). | 120 | 0 to 3600 |
kgxat_trash_public |
1 = everyone sees what is in a trashcan and may take it until it is deleted. Off: only your own. Shown as Everyone sees what is in a trashcan and may take it (off: only your own). | 1 | 0 to 1 |
Tips and limits
- Placed trashcans (and spawned props made trashcans) are saved in
data/kgx_admin_toolbox/trashcans_<map>.json. - Map props and permanent props made trashcans are saved in
trash_<map>.json. - A placed trashcan removed any other way comes back.
- Toolbox admins can move placed trashcans with the physics gun. Nobody can pick them up with the gravity gun.
- Other tools cannot be used on placed trashcans, except this tool and the Inspector.
- Right-click works on props only. Spawned entities that are not physics props are refused.