- 57,257
- 372
- 235.23 kB
About Garage
Spawn in a lift ,parts ,modules ,chassis or car with permissions and shared cooldown.
They still need to be fixed before driven !
Features :
Updating to v2.0.0 will reset the garage prices only (backup the cfg file) !!!
- Set kits and sell them through the shop
- Use of Economics or ServerRewards (combined to 1 button as of v2.0.0)
- Configurable colors/backgrounds/transparency/buttons
- This is a Garage so no complete vehicles incl parts attached are planned in the near future
- Logging of each sale or attempt to a misbuy is saved in the log folder
Changes made in 2.0.0
- Rewrite of the plugin (phase 1)
- Added additional kit checks and added a chat message if not.
- Currency will now be combined into 1 purchase button for Eco/SR
- Backup your config price settings (images colors remain) Naming of prices changed this will reset all prices to the ones set in the plugin.
- Relocated buttons and images accordingly
- Added the Armored Passenger Module
Permissions :
- garage.use : for using the Plugin
- garage.nocost : for free purchases (will overlay a button called Free over the current purchase buttons)
- garage.nocooldown : to have no cooldown on spawning them in
Commands :
- /garage ui : to open Garage Shop
- /garage info : to show the commands and info in chat
Logfiles :
- Log files are found in the oxide.logs folder
- garage_kits : All actions by using Kits will be in this file saving purchases errors and/or if the player didnt had enough cash
- garage_sales : Will list all sales/errors and/or players didnt had enough cash regarding buying parts/cars/chassis/modules
Configuration :
You can also only give the Cars and Chassis a Shared cooldown to avoid spamming.
What can you change in the cfg.json ?
- Can you spawn inside (false by default)
- Cooldown (only cars/chassis)
- Using ServerRewards Settings
- Using Economics Settings
- Background image
- Kit Images
- Modules images
- Parts Images
- Button colors (cars/chassis/modules/parts) , (lift) and (close button) each share their colors ( ).
- Button text colors (cars/chassis/modules/parts) , (lift) ,(close button) and kits each share their colors ( ).
- Can change the Garage Title text on topside and its color which is (Garage By Krungh Crow v1.0.8) by default.
- Prices for all the cars/chassis/mods/parts and kits
For making kits u make a "KIT" you would normaly do then add just the kits name incl uppercases
for example
Quote"Kit 1 (kit Title)": "HQ Engine Parts",
"Kit 1 (Icon Url)": "https://i.ibb.co/y8HH02h/carkitblack.png",
"Kit 1 (kit name ID)": "car1",
"Kit 1 (Price)": 4000,
The kits can be configured like normal the cooldowns will be taken over from the kits plugin so if u set the cooldowns
in the Kits.json config file it will use that cooldown same goes for the amount of times u can take it
- (kit Title) : To show a short description/name for the kit
- (Icon Url) : Link to the image used for the kit
- (Kit name ID) : full kit name (use the kitnameID from the kits plugin)
- (Price) : Price tag
Set prices to 0 if you will be using the cooldowns from the kits plugin !!!!!!
Example config below :
{ "Cooldown": 5, "BuildingSpawn": false, "Use ServerRewards": true, "Use Economics": true, "Garage shop Title": "Midlands PVE Garage Shop", "Garage Text color (RGBA)": "1 1 1 1", "Button color (RGBA)": "0.05 0 0 0.80", "Button text color (RGBA)": "1 1 1 0.90", "Menu Button color (RGBA)": "0.0 0.0 0.0 0.0", "Close Button color (RGBA)": "0.0 0.0 0.0 0.0", "Close Button Text color (RGBA)": "1 1 1 0.90", "Button Lift color (RGBA)": "0.05 0 0 0.80", "Button Lift Text color (RGBA)": "1 1 1 0.90", "Garage shop Background Image Url": "https://cdn.discordapp.com/attachments/718923255574167665/768477956007526400/Garage-Poster.png", "Garage shop Background Transparancy (0-1)": 0.95, "Main page button icon Image Url": "https://i.ibb.co/pLdsMQV/Green.png", "Modules page button icon Image Url": "https://i.ibb.co/s1xqmTX/Purple.png", "Parts page button icon Image Url": "https://i.ibb.co/Cbtx3rc/Blue.png", "Close button icon Image Url": "https://i.ibb.co/84xBH5Y/Red.png", "Kits text color (RGBA)": "1 1 1 0.90", "Kit 1 (kit Title)": "HQ Engine Parts", "Kit 1 (Icon Url)": "https://i.ibb.co/2NpSvZX/parts.png", "Kit 1 (kit name ID)": "car1", "Kit 1 (Price)": 3999, "Kit 2 (kit Title)": "Mechanics Outfit", "Kit 2 (Icon Url)": "https://i.ibb.co/Vm5drNd/mechanics-outfit.png", "Kit 2 (kit name ID)": "mechanic", "Kit 2 (Price)": 500, "Kit 3 (kit Title)": "Refuell", "Kit 3 (Icon Url)": "https://vignette.wikia.nocookie.net/play-rust/images/2/26/Low_Grade_Fuel_icon.png/revision/latest?cb=20151110002210", "Kit 3 (kit name ID)": "fueling", "Kit 3 (Price)": 500, "Kit 4 (kit Title)": "Carkit 4 description", "Kit 4 (Icon Url)": "https://i.ibb.co/JBmNcC0/carkitpink.png", "Kit 4 (kit name ID)": "car4", "Kit 4 (Price)": 0, "Kit 5 (kit Title)": "Carkit 5 description", "Kit 5 (Icon Url)": "https://i.ibb.co/R3SXcvY/carkitred.png", "Kit 5 (kit name ID)": "car5", "Kit 5 (Price)": 0, "Kit 6 (kit Title)": "Carkit 6 description", "Kit 6 (Icon Url)": "https://i.ibb.co/Fs0VqDQ/carkitgreen.png", "Kit 6 (kit name ID)": "car6", "Kit 6 (Price)": 0, "Lift (Icon Url)": "https://i.ibb.co/Sfd2kxH/modularcarlift.png", "Lift (Button Text)": "Get A lift", "lift (Price)": 2500, "Simple Cockpit (Image Url)": "https://i.ibb.co/tcg16yg/vehicle-1mod-cockpit.png", "Simple Cockpit (Price)": 1000, "Armored Cockpit (Image Url)": "https://i.ibb.co/SPvDV9c/vehicle-1mod-cockpit-armored.png", "Armored Cockpit (Price)": 1500, "Cockpit+Engine (Image Url)": "https://i.ibb.co/TtLNz4G/vehicle-1mod-cockpit-with-engine.png", "Cockpit+Engine (Price)": 1250, "Large Fuell Tank (Image Url)": "https://i.ibb.co/2YSbbRD/vehicle-2mod-fuel-tank.png", "Large Fuelltank (Price)": 1000, "Engine (Image Url)": "https://i.ibb.co/1dzkVVV/vehicle-1mod-engine.png", "Engine (Price)": 1250, "Short Flatbed (Image Url)": "https://i.ibb.co/s62zLrg/vehicle-1mod-flatbed.png", "Short Flatbed (Price)": 1000, "Long Flatbed (Image Url)": "https://i.ibb.co/VNMpXtp/vehicle-2mod-flatbed.png", "Long Flatbed (Price)": 1250, "Passenger Module (Image Url)": "https://i.ibb.co/3cBtXSL/vehicle-2mod-passengers.png", "Passenger Module (Price)": 1500, "Rear Seat (Image Url)": "https://i.ibb.co/KLJsdXQ/vehicle-1mod-rear-seats.png", "Rear Seat (Price)": 1250, "Storage Module Image Url": "https://i.ibb.co/BN2qFzp/vehicle-1mod-storage.png", "Storage Module (Price RP": 1500, "Armored Passenger Module (Image Url)": "https://rustlabs.com/img/items180/vehicle.1mod.passengers.armored.png", "Armored Passenger Module (Price)": 1500, "Taxi Module (Image Url)": "https://i.ibb.co/HCLzx2S/vehicle-1mod-taxi.png", "Taxi Module (Price)": 1500, "Pistons Icon Url": "https://i.ibb.co/2qh1Q0G/pistons.png", "LQ Piston (Price)": 500, "MQ Piston (Price)": 750, "HQ Piston (Price)": 1000, "Crankshafts Icon Url": "https://i.ibb.co/THY34QF/cranks.png", "LQ Crankshaft (Price)": 500, "MQ Crankshaft (Price)": 750, "HQ Crankshaft (Price)": 1000, "Sparkplugs Icon Url": "https://i.ibb.co/YQ3g4sf/plugs.png", "LQ Sparkplug (Price)": 500, "MQ Sparkplug (Price)": 750, "HQ Sparkplug (Price)": 1000, "Valves Icon Url": "https://i.ibb.co/qkYPV9R/valves.png", "LQ Valve (Price)": 500, "MQ Valve (Price)": 750, "HQ Valve (Price)": 1000, "Carburetor Icon Url": "https://i.ibb.co/Wk9yQqz/carbs.png", "LQ Carburetor (Price)": 500, "MQ Carburetor (Price)": 750, "HQ Carburetor (Price)": 1000, "Small Chassis (image Url)": "https://i.ibb.co/VMbLdzN/chas2.png", "Small Chassis (Price)": 2500, "Medium Chassis (image Url)": "https://i.ibb.co/q0QRcqn/chas3.png", "Medium Chassis (Price)": 3500, "Large Chassis (image Url)": "https://i.ibb.co/164Fxxs/chas4.png", "Large Chassis (Price)": 4500, "Small Car (image Url)": "https://i.ibb.co/Tk38DWd/howard-schechtman-car1.jpg", "Small Car (Price)": 5000, "Nedium Car (image Url)": "https://i.ibb.co/vJWGtcw/howard-schechtman-car2.jpg", "Medium Car (Price)": 7500, "Large Car (image Url)": "https://i.ibb.co/zXpDRht/howard-schechtman-car3.jpg", "Large Car (Price)": 10000 }
Localization :
English language file included to use a diffrent language just make a new file in the language folder.
{ "NoPermission": "You do not have permission to use that command!", "InvalidInput": "Please enter a valid command!", "IndoorsBlocked": "You cannot spawn indoors only outside!", "Info": "\n/garage ui : to open the Garage Shop.", "Cooldown": "You are still on a cooldown!", "Lift": "You just recieved a lift!", "BoughtSmallCar": "You just Bought a Small Car, Have fun!", "BoughtMediumCar": "You just Bought a Medium Car, Have fun!", "BoughtlargeCar": "You just Bought a Large Car, Have fun!", "BoughtSmallChas": "You just Bought a Small Chassis, Have fun!", "BoughtMediumChas": "You just Bought a Medium Chassis, Have fun!", "BoughtlargeChas": "You just Bought a Large Chassis, Have fun!", "FreeCar": "You just Got a free Car, Have fun!", "FreeChas": "You just Got a free Chassis, Have fun!", "ReceivedCockpit": "You just recieved a simple cockpit!", "ReceivedCockpitArmored": "You just recieved a Armored Cockpit!", "ReceivedCockpitEngine": "You just recieved a Cockpit with a Engine attached!", "ReceivedFuelltank": "You just recieved a empty Large Fuelltank!", "ReceivedEngine": "You just recieved a Engine Module!", "ReceivedSingleFlatbed": "You just recieved a short Flatbed Module!", "ReceivedDualFlatbed": "You just recieved a Long Flatbed Module!", "ReceivedPassengers": "You just recieved a Passenger Module!", "ReceivedRearseat": "You just recieved a Rear Seat Module!", "ReceivedStoragemodule": "You just recieved a Storage Module!", "ReceivedLowPart": "You just recieved a Low quality engine part!", "ReceivedMedPart": "You just recieved a Medium quality engine part!", "ReceivedHighPart": "You just recieved a High quality engine part!", "Spawned": "You spawned a {0}!", "NoBallance": "You Dont have enough points!", "NotSet": "This currency is not set to true or not installed on this server!", "Prefix": "<color=yellow>[Garage]</color> ", "ReceivedTaximodule": "You just recieved a Taxi Module!"
Credits
* Steenamaroo for help with the cooldowns and ui