π Stash Houses
Introduction
This script will add the ability for players to rent and manage their very own stash houses, giving your players the ability to hide their supplies without having to buy another house.
This script is written to work with QBCore and Zap Hosting ESX Pack
Features of Stash Houses:
Unlimited Stash Houses
Stash Houses can be created by either staff only or by set jobs (editable in config)
Stash House Interiors are created automatically using objects
Storable Cash (max amount editable within config)
Cash Objects depending on amount stored for added immersion.
Separate Storage Inventories for each object with a storage inventory.
Ability to furnish the stash house with a list of furniture (editable within config)
Ability for Police to Raid Stash Houses (Jobs editable within config)
Stash Management UI to manage rent and keys
This is compatible with the following inventory systems:
qb-inventory (QBCore)
lj-inventory (QBCore)
ox_inventory (ESX)
chezza-inventory (ESX)
Editable functions file which means this can be converted to any framework.
Installation
Download the power_stashhouses from Keymaster
Run the .sql file in your database.
Add the files to your resources folder
Ensure that the resource file will start (either ensure your resource in the server.cfg or inside a folder which is started on server start)
Edit the config file to your needs
Restart your server
Configuration
Select the tab below for your framework to see the configuration options available.
In this section, you can edit the language if you need to translate to another language or edit the wording.
You can edit or add your own interiors here. Default settings are as follows:
You can edit the available furniture here, change the price and storage amount per piece, and add or remove furniture options. Default settings are as follows:
Editable files
functions.lua
Inventory Compatibility
If you would like to edit the inventory functions, you can edit them in the functions.lua file. Default functions are as follows:
Pulling character information
If you would like to edit how character information is pulled, you can edit them in the functions.lua file. Default functions are as follows:
Checking Police Job
If you would like to edit the check for police jobs functions, you can edit them in the functions.lua file. Default functions are as follows:
Custom Notifications
If you would like to edit the notifications to add your own custom notifications or to match them to your other server notifications, you can edit them in the functions.lua file. Default notifications are as follows:
server_functions.lua
Handling player data
If you need to change how player data is called, you can change this in the server_functions.lua. Default functions are as follows:
Money Functions
If you need to change how money functions are handled, you can change this in the server_functions.lua. Default functions are as follows:
Staff Checks
If you need to change how player staff permissions are handled, you can change this in the server_functions.lua. Default functions are as follows:
Job Checks
If you need to change how character job permissions are handled, you can change this in the server_functions.lua. Default functions are as follows:
HTML
HTML files can be edited as needed for additional language support or styling edits.
Additional language edits can be applied in index.html
Look for the following terms that can be translated:
Stash House
Stash Furniture
Edit Furniture
Stash Keys
Add Key
New Key
Add Key
Cancel
Information
Days Remaining
Stash Keys:
Stored Cash:
Stash Rent
Add 7 Days
Add 28 Days
Terminate Contract
Last updated