v1.1
Changelog
Dealerships can hire employees
Employees can sell vehicles directly to customers; showroom can be disabled
Sell vehicle back to the dealership
Optional markers so dealership locations are easier to find
Hide blips (set
hideBlip = true
) within the dealership configRestrict access to Dealership based on job or gang
Open callback on client & server for restricting showroom access
"Restore showroom" button for resetting display vehicles if they get messed up
Vehicle sales now show name in Dealership Management
Toggle financing per dealership
Set new vehicle plate patterns + fix bug where plate would exist in DB
Fix: okokTextUI spamming sound (fixed text ui being constantly re-rendered)
Fix: Health being restored when exiting the dealership/ending test drive
Fix: SQL error when updating a vehicle in /dealeradmin
Fix: Colour changing after vehicle purchase
Fix: Financing bugs
Upgrade Instructions
Replace all files
Run the following SQL code in your database (works for both QB & ESX):
New Chat Command
All dealership employees (any rank) get access to the new /directsale
chat command. This brings up a menu and shows a tablet emote in-game, allowing the employee to sell a vehicle directly to a nearby player. The nearby player will have to approve and sign to finalise the purchase.
This will only work if they are (1) employed by that dealership (2) close enough to the "showroom" coords location. The radius can be configured via directSaleDistance
within the dealership location within config.lua
Config File Changes
You should probably use the Configurator: https://configurator.jgscripts.com
New Config Options within Dealership:
Employees
You can now hire employees via the Dealership Management > Employees tab.
Employees can be one of three ranks: Manager, Supervisor or Sales. You cannot change this, but you can configure how this aligns to ranks for the job in your framework via framework/sv-functions.lua
Here is the permissions breakdown:
Last updated