Skip to content

Kmack710/710-Management

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

710-Management

A management system for company and gang funds that works with all frameworks!

Features

  • 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!

Support

https://Guilded.gg/710

IMPORTANT

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!

Install (More detailed instructions will be on Docs when they are up in 1-2 days!)

  1. Make sure you have most up to date 710-lib v1.2 or higher!
  2. Run all SQL files
  3. Read ALL Configs/Locales
  4. Use the ingame commands found in config to set bossmenu and duty (Clock in / out locations)
  5. Make sure to turn off your payroll system and Default duty (So players will always log in off duty)
  6. 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.)

Exports

--- 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
;

About

MultiFramework Management System!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages