Untamed Garage is a script that allows players to manage wagons in the game. Players with specific job roles can access different garage locations to buy, retrieve, and park wagons. The wagons' state and location are tracked in a database, ensuring proper management and availability.
- Buy Wagons: Players can purchase various types of wagons through an in-game menu.
- Retrieve Wagons: Retrieve stored wagons from the garage.
- Park Wagons: Return wagons to the garage, updating the database.
- Job-Based Access: Only players with specific job roles can interact with the garages.
- Multiple Garage Locations: Set up multiple garages for different job roles with configurable locations.
- Download and Extract: Download the script and extract it into your resources folder.
- Rename the Folder: Ensure the folder is named
untamed_garage. - Add to Server Config: Add
ensure untamed_garageto yourresources.cfg. - Database Setup: Import the provided SQL schema to your database.
- Configuration: Customize the script by editing the
config.luafile to fit your server's needs.
Edit the config.lua file to configure garage locations, wagon types, prices, job roles, and prompts.
Players with the appropriate job role can approach a garage location and press the configured prompt key to open the garage menu. They can choose a wagon to buy, and it will spawn at the designated location.
Players can retrieve stored wagons by selecting the retrieve option from the garage menu. They can choose which wagon to retrieve based on availability.
Players can return a wagon to the garage by approaching the designated parking location and pressing the prompt key. The wagon will be deleted, and the database will be updated to mark the wagon as available.
If you wish to contribute to this project, feel free to fork the repository and make modifications. Pull requests are welcome!
This project is licensed under the GNU General Public License. See the LICENSE file for details.
CREATE TABLE IF NOT EXISTS `UntamedGarage` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`charidentifier` VARCHAR(50) NOT NULL,
`wagon` VARCHAR(50) NOT NULL,
`job` VARCHAR(50) NOT NULL,
`is_taken` BOOLEAN NOT NULL DEFAULT FALSE,
`last_used` BIGINT NOT NULL,
PRIMARY KEY (`id`)
);