π’Player Owned Offices
Introduction
This script adds the ability for your players to purchase their very own office
This script is written to work with QBCore and ESX Legacy
This resource requires ox_lib
Features of Player-Owned Offices:
Ability to Change The Name of the Office.
Ability to Change The Name Color.
Ability to Change the Style of the Office. (Configurable to change cost)
Ability to Add and Remove Props within the Office
Ability to Deposit and Withdraw money into an Office Bank.
Money Stacks will be displayed within the office depending on how much is stored within the office.
Ability to Add and Manage Staff that can also manage the office
Ability to Transfer the Office to Other Players (Configurable to disable)
Ability for Office Staff to Lock the Office - Preventing anyone from entering until unlocked.
Ability for Police Jobs to Access Storage Safes (Configurable Item Requirement too)
4 Separate Office Locations (Arcadius Business Centre, Lom Bank, Maze Bank Building, Maze Bank West)
Each Office Location supports unlimited offices, each office location has a separate list.
Each Office has access to the rooftop helipad (Good when you add a helicopter garage location to the rooftops)
Each Office has the ability for the staff to access the outfit menus to change outfits
Each Office is equipped with 2 separate storage safes (safes will physically open for the player to add to immersion)
Installation
Download the power_offices 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.
Be sure to adjust this section to fit in with your server's economy. You can also select which locations are active and rename the blips.
Logs
You can hook into the following events to log to your own logging system / discord
These are server events and must be registered as such
'offices:purchaseLog' - Sends source, office id and price
'offices:transferLog' - Sends source, target and office id
In this section, you can edit the language if you need to translate to another language or edit the wording.
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:
Clothing compatibility
If you would like to edit the clothing 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:
Last updated
Was this helpful?