πInstallation
Database
Run this on your database
CREATE TABLE IF NOT EXISTS station_items (
id int(11) NOT NULL AUTO_INCREMENT,
station_id int(11) NOT NULL,
item_name varchar(255) NOT NULL,
item_price decimal(10,2) NOT NULL,
item_image varchar(255),
job varchar(50) NOT NULL,
PRIMARY KEY (id)
);
ALTER TABLE station_items CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
Import the sound notif.ogg
in Folder πEXTRA to your interact sound.
Dependencies
Lab hint-ui : https://github.com/LabScripts/lab-HintUI (optional)
Interact-sound : https://github.com/plunkettscott/interact-sound
zf-missionfollowups : https://github.com/zf-labo/zf-missionfollowups (optional)
β οΈ Optional means you can use other option if you would like to, Example Lab hint-ui
Can be replaced with zf-missionfollowups
Supported
QBCore, QBOX CORE and ESX
ox_target , QB-target and Devyn Interract (https://github.com/darktrovx/interact)
Qb-banking, QB-management and Renewed-Banking, esx_society
Config
Config = {}
Config.Debug = true -- Enable debug mode
Config.Framework = 'qb' -- This is the framework you are using. If you are using ESX set this to ESX or if you using qbcore or qbox set it to qb
Config.MissionUI = 'zf-missionfollowups' -- This is the mission UI you want to use. If you want to use the hintlab mission UI set this to hintlab else set it to default
Config.Mangement = 'renewed'
-- This is the management system you want to use. if you use renewed banking and not qb management then set this to renewed else set it to qb-management
-- if you use qb-banking set it to qb-banking or esx_society
Config.Interact = 'ox' -- ox for ox_target, qb for qb-target, devyn for devyn interact.
Config.orderstations = { -- Order stations
[1] = { -- Order station 1
orderstation = {
[1] = vec3(288.87, -1264.34, 29.44), -- Order station coords where players can order
[2] = vec3(288.61, -1259.4, 29.44),
[3] = vec3(289.08, -1253.88, 29.44),
},
ordercheckstation = vec3(288.47, -1268.7, 29.44), -- Order check station coords where employees can check orders
manageItems = vec3(288.51, -1276.95, 29.44), -- items management station coords where employees can manage items
job = 'mechanic', -- Job required to check and manage orders and station items
commission = 0.50, -- 50% commission for the employee so they get 50% of the total amount of the order.
},
---- You can add more station for diffrent jobs like this:
--[[ [2] = { -- Order station 2
orderstation = vec3(440.87, -981.08, 30.69), -- Order station coords where players can order
ordercheckstation = vec3(440.09, -975.63, 30.69), -- Order check station coords where employees can check orders
manageItems = vector3(-1193.48, -893.73, 14.01), -- items management station coords where employees can manage items
job = 'police', -- Job required to check orders
commission = 0.50, -- 50% commission for the employee so they get 50% of the total amount of the order.
}, ]]
}
Last updated