- Built in multijob with job change location!
- Custom Payrate PER player (Cause people should get raises before promotions!)
- Full boss management menu system!
- PayCycle built in via duty and Custom pay rates!
- Duty System with EASY export to see how many players are on duty instead of making some loop through online players (lol)
- okokBanking Compatiblity!
If using QBCore then turn all jobs default duty to false so they will always log in as false. This resource automatically puts them off duty when they log out!
- Make sure you have most up to date 710-lib v1.2 or higher!
- Run all SQL files
- Read ALL Configs/Locales
- Use the ingame commands found in config to set bossmenu and duty (Clock in / out locations)
- Make sure to turn off your payroll system and Default duty (So players will always log in off duty)
- Okok Compatiblity available! (You have to reach out in guilded or discord and provide proof of okokbanking purchase since i have to send you the whole server.lua file.)
--- Server side exports
exports['710-Management']:GetManagementAccounts()
exports['710-Management']:GetManagementAccount(name)
exports['710-Management']:AddAccountMoney(name, amount)
exports['710-Management']:RemoveAccountMoney(name, amount)
exports['710-Management']:CheckIfPlayerOnDuty(source)
exports['710-Management']:CheckHowManyStaffOnDuty(job)
exports['710-Management']:CheckIfBossS(source, job) -- Checks if that player is a boss at the job you are looking for.
--- Client side exports
exports['710-Management']:CheckIfBossC(job) -- Checks if this player is boss. Can only be done client side on a player directly. Job is in here incase they are boss of another job and they highest grade is the same.
CREATE TABLE `management_staff` (
`pid` VARCHAR(255) NOT NULL COLLATE 'utf8_general_ci',
`name` VARCHAR(255) NULL DEFAULT NULL COLLATE 'utf8_general_ci',
`job` VARCHAR(255) NULL DEFAULT 'unemployed' COLLATE 'utf8_general_ci',
`grade` INT(11) NULL DEFAULT '0',
`payrate` INT(11) NULL DEFAULT '0',
`job2` VARCHAR(255) NULL DEFAULT 'unemployed' COLLATE 'utf8_general_ci',
`grade2` INT(11) NULL DEFAULT '0',
`payrate2` INT(11) NULL DEFAULT '0',
`duty` INT(11) NULL DEFAULT '0',
PRIMARY KEY (`pid`) USING BTREE
)
COLLATE='utf8_general_ci'
ENGINE=InnoDB
;
CREATE TABLE `management_accounts` (
`name` VARCHAR(255) NOT NULL COLLATE 'utf8_general_ci',
`balance` INT(11) NOT NULL DEFAULT '0',
`menu` LONGTEXT NOT NULL COLLATE 'utf8_general_ci',
`bossgrade` INT(11) NULL DEFAULT NULL,
`dutylocation` LONGTEXT NULL DEFAULT NULL COLLATE 'utf8_general_ci',
PRIMARY KEY (`name`) USING BTREE
)
COLLATE='utf8_general_ci'
ENGINE=InnoDB
;