Installation

Step 1 : Configuring Items

Add the following lines to the ox_inventory\data\items.lua file to define the new items used by the lottery system:

['lottery_ticket'] = {
    label = 'Ticket Lotterie',
    weight = 190,
    stack = false,
    consume = 0,
},

['lottery_computer'] = {
    label = 'Ordinateur Lotterie',
    weight = 190,
    stack = false,
    consume = 0,
},

['paper'] = {
    label = 'Papier',
    weight = 1,
    stack = true,
    close = true,
    description = 'Du papier blanc pour écrire'
},

['ink'] = {
    label = 'Encre',
    weight = 5,
    stack = true,
    close = true,
    description = 'De l\'encre noire pour écrire'
},

Step 2 : Adding Images

To properly display item images in the game:

  1. Copy the images from the kr_lottery\INSTALLATION folder.

  2. Paste them into the ox_inventory\web\images folder.

Step 3 : Adding SQL

INSERT INTO `jobs` (`name`, `label`) VALUES
('lottery', 'Loterie Nationale');

INSERT INTO `job_grades` (`job_name`, `grade`, `name`, `label`, `salary`, `skin_male`, `skin_female`) VALUES
('lottery', 0, 'employee', 'Employé', 250, '{}', '{}'),
('lottery', 1, 'supervisor', 'Superviseur', 400, '{}', '{}'),
('lottery', 2, 'manager', 'Manager', 600, '{}', '{}'),
('lottery', 3, 'boss', 'Directeur', 800, '{}', '{}');

INSERT INTO `addon_account` (`name`, `label`, `shared`) VALUES
('society_lottery', 'Loterie Nationale', 1);

INSERT INTO `addon_account_data` (`id`, `account_name`, `money`, `owner`) VALUES
(NULL, 'society_lottery', 100000, NULL);

INSERT INTO `addon_inventory` (`name`, `label`, `shared`) VALUES
('society_lottery', 'Loterie Nationale', 1);

Last updated