Jobs

Run a casino with a job on Qbox, QBCore or ESX, with ready-to-paste job entries, the roles, hiring at the Boss Desk and the casino doors.

A casino can be run by the house or by a job. Set it on the casino's row under Casinos in /ggsettings.

Run By JobWhat happens
EmptyThe house runs the casino with the server's money. Nobody owns it, and it is not on the Casino Tablet.
A job's name, such as baylightThe casino is a business. It keeps an account of its own, run by the people with that job.

A casino run by a job keeps its account in dollars, apart from your framework's society accounts. Every bet goes in and every win comes out, and the cage's Cash Out Fee goes in too. The account starts at $0. A win is always paid in full, so the account can go below zero. A thin account never closes the casino: its games keep their smallest bets, and their biggest bets are held down to what the account can pay.

Suggested job names

Give each casino a job of its own. These names fit the GG Studio casinos:

CasinoJob
The Belladonna Casino & Resortbelladonna
The Baylight Casinobaylight
The Prickly Pair Casino & Saloonpricklypair

Any job name works, for any casino. On a ready-made casino, setting Run By Job counts as your first change to it: from then on its Enabled switch decides whether it is in the world (see Ready-made casinos).

The job is made for you

When Run By Job names a job your server does not have, Casino Creator makes it on start, on Qbox, QBCore and ESX:

GradeNamePay
0Dealer60
1Floor Staff80
2Pit Boss100
3Manager125
4Owner (boss)150

The top grade is the row's Owner Grade, 4 to start. The job's label is the casino's name. The console prints a line such as Casino The Baylight Casino: made the job baylight (grades 0-4, 4 the boss).

A job your server already has is never changed: its own grades, pay and boss grades are used.

On Qbox and QBCore a job made this way lives only in memory, and Casino Creator makes it again on every start. On ESX it is written to the jobs and job_grades tables and stays. To rename the grades, change the pay or keep the job for good, add it yourself as below.

Add the job yourself

Each example is for baylight. Change the name and the label for each casino.

Qbox

Open qbx_core/shared/jobs.lua and paste this inside the table it returns. Do not replace the whole table.

Lua
    ['baylight'] = {
        label = 'The Baylight Casino',
        type = 'casino',
        defaultDuty = true,
        offDutyPay = false,
        grades = {
            [0] = { name = 'Dealer', payment = 60 },
            [1] = { name = 'Floor Staff', payment = 80 },
            [2] = { name = 'Pit Boss', payment = 100 },
            [3] = { name = 'Manager', payment = 125 },
            [4] = { name = 'Owner', isboss = true, bankAuth = true, payment = 150 },
        },
    },

QBCore

Open qb-core/shared/jobs.lua and paste this inside the QBShared.Jobs table. The grades are keyed by strings there.

Lua
    ['baylight'] = {
        label = 'The Baylight Casino',
        type = 'casino',
        defaultDuty = true,
        offDutyPay = false,
        grades = {
            ['0'] = { name = 'Dealer', payment = 60 },
            ['1'] = { name = 'Floor Staff', payment = 80 },
            ['2'] = { name = 'Pit Boss', payment = 100 },
            ['3'] = { name = 'Manager', payment = 125 },
            ['4'] = { name = 'Owner', isboss = true, payment = 150 },
        },
    },

ESX

Run this once in your database, then restart. Grade 4 is named boss, which marks the boss grade on ESX.

SQL
INSERT INTO `jobs` (`name`, `label`) VALUES ('baylight', 'The Baylight Casino');
INSERT INTO `job_grades` (`job_name`, `grade`, `name`, `label`, `salary`, `skin_male`, `skin_female`) VALUES
    ('baylight', 0, 'dealer', 'Dealer', 60, '{}', '{}'),
    ('baylight', 1, 'floor_staff', 'Floor Staff', 80, '{}', '{}'),
    ('baylight', 2, 'pit_boss', 'Pit Boss', 100, '{}', '{}'),
    ('baylight', 3, 'manager', 'Manager', 125, '{}', '{}'),
    ('baylight', 4, 'boss', 'Owner', 150, '{}', '{}');

If your boss grade is not grade 4, or your framework marks no boss grade, set Owner Grade on the casino's row to match.

Roles

The job decides who runs the casino. There is no separate staff list.

RoleWhoCan
OwnerThe job's boss grades: isboss on Qbox and QBCore, the grade named boss on ESX. Where none is marked, Owner Grade and up.Everything: the Boss Menu, hiring and firing, the money, Max Bets, the bar, the casino's own cash-out limit, and turning games on and off
MemberEvery other grade of the jobWork from the Casino Tablet: see and move the money, set Max Bets and the bar, turn games on and off, and bar players

Owners use the Boss Menu at the casino's Boss Desk or Boss Computer, put down with the builder under Cashier. Only an Owner or a server admin can open it. Every other grade works from the Casino Tablet (gg_casino_tablet). With Boss Desk Menu off under Advanced, the desk is only a seat and Owners use the tablet too.

Hiring and firing

Hiring at the Boss Menu always gives the job: the lowest grade for a Member, the boss grade for an Owner. Firing takes the job away straight away, or the next time that player is on. Grade changes go through your framework's own job, so the player has to be in the city.

To put a casino's first Owner in, a server admin opens the Boss Menu at its Boss Desk and hires them as Owner. You can also give the boss grade with your framework's own job command.

Doors

With ox_doorlock running, the Belladonna, Baylight and The Prickly Pair lock their own doors when they start:

DoorsWho opens them
Front doors, reception, the cashier and restroomsUnlocked. The casino's job can lock them.
Offices, staff rooms, staff stairs and service doorsThe casino's job, any grade
The vault, at Baylight and The Prickly PairThe job's boss grade. The Belladonna has no vault door.

The doors open for the job set in Run By Job. A casino with no job keeps its locked doors shut to everyone until an admin opens them or gives them a job in /doorlock. The first time a building's doors are added, the console names each one.

ox_doorlock reads new doors only when it starts. Casino Creator restarts it once while nobody is on the server. With players on, the doors come the next time the server is empty, or at the next restart.

On QBCore, ox_doorlock does not read a player's job from QBCore, so a door's job opens nothing there. Give the door's ace instead, by the door's name from the console:

server.cfg
add_ace group.admin "doorlock.gg_casino:baylight:count" allow

Lock The Casinos' Doors under Casinos is on to start. Turn it off and every door the casino made is unlocked and taken off the job. The doors stay in ox_doorlock as open doors with no prompt, which only an admin can lock. Turn it back on to lock them for the casino's job again. A door you changed in /doorlock is always left as you set it.

CommandWhat it does
casinodoorsPrints each building's doors in the server console.
casinodoors restoreMakes again any door you deleted in /doorlock.

Both run from the server console. To use them in game, a player needs the ace command.casinodoors.

Support

Questions before you buy?

Ask the team in our Discord before you pay a thing. Setup help, update notes, giveaways and discount codes, all in one place.

1,066 online now2,301 members