GithubHelp home page GithubHelp logo

xyberviri / 710-management Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kmack710/710-management

0.0 0.0 0.0 50 KB

MultiFramework Management System!

License: GNU General Public License v3.0

Lua 100.00%

710-management's Introduction

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
;

710-management's People

Contributors

kmack710 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.