๐งน Silly Clean โ Cleaning System (RedM)
A lightweight cleaning system for RedM. Players use a configurable inventory item to clean themselves โ removes all dirt, blood, and damage decals with a smooth animation.
Preview: Video
โจ Features
-
๐งผ Full cleaning: removes dirt, blood, and all damage decals
-
๐งฐ Usable item: triggered via inventory item (configurable)
-
๐ Item consumption: optional item removal on use
-
๐ญ Custom animation: configurable dict, name, duration & flag
-
๐ Success notification: configurable text & duration
-
๐ Safe animation: player is frozen during animation
-
๐ก๏ธ Timeout protection: anim dict loading with timeout
-
๐๏ธ Auto DB setup: item auto-created in database
-
๐ Multi-Framework: VORP + RSGCore (auto-detected)
โ Dependencies
-
RedM
-
VORP Core or RSGCore (auto-detected at runtime)
-
oxmysql(for auto item setup)
๐ฆ Installation
-
Place
Silly_Cleanin your server resources folder. -
Ensure it in your
server.cfg:ensure Silly_Clean
-
Configure item name, animation, and messages in
config.lua. -
The item will be auto-created in the database on first start.
โ๏ธ Configuration (config.lua)
Item
-
Config.ItemNameโ inventory item name (e.g."Kutschenreinigungstuch") -
Config.RemoveItemโ consume item on use (true/false)
Animation
-
Config.Animation.Dictโ animation dictionary -
Config.Animation.Nameโ animation name -
Config.Animation.Durationโ duration in ms -
Config.Animation.Flagโ animation flag
Notification
-
Config.Notification.Textโ success message text -
Config.Notification.Durationโ duration in ms
๐ Multi-Framework Support
Silly Clean automatically detects whether your server runs VORP or RSGCore and uses the correct API calls. No manual configuration needed.
| Feature | VORP | RSGCore |
| ------------- | ----------------------------------- | ------------------------------------- |
| Usable Item | vorp_inventory:registerUsableItem | RSGCore.Functions.CreateUseableItem |
| Remove Item | vorp_inventory:subItem | Player.Functions.RemoveItem |
| Notifications | vorp:TipBottom | RSGCore:Notify |
| DB Item Table | items / vorp_items | items |
๐ฎ How It Works
- Player uses the configured item
- Cleaning animation plays (player is frozen)
- All dirt, blood, and damage decals are removed
- Player is unfrozen and gets a notification

