Page cover

Installation

Need Help Join our discord we are always here : https://discord.gg/4SbX4JEUqV

RESOURCE INSTALLATION GUIDE

1

RESOURCE INSTALLATION GUIDE

Download your resource from FiveM's Keymaster.

2

ADD ITEMS

['backpack'] = {
    label = 'Student Backpack',
    weight = 220,
    stack = false,
    consume = 0,
    description = 'A spacious backpack used to store university materials.',
    client = {
        export = 'nl-university.openBackpack'
    }
},

['student_id'] = {
    label = 'Student ID Card',
    weight = 50,
    stack = false,
    close = true,
    description = 'Official university-issued identification card with photo and student info.'
},

['print_document'] = {
    label = 'Printed Assignment',
    weight = 25,
    stack = true,
    close = true,
    description = 'A printed assignment or form. Don’t lose it!',
    client = {
        export = 'nl-university.useDocument'
    }
},

['printer_paper'] = {
    label = 'Blank Printer Paper',
    weight = 5,
    stack = true,
    close = true,
    description = 'Standard blank A4 paper used in printers.'
},

['chalkboard2'] = {
    label = 'Wall Chalkboard',
    weight = 5000,
    stack = false,
    description = 'A classic wall-mounted chalkboard used in classrooms.'
},
-- Related to the chemistry class
['acetone'] = {
    label = 'Acetone',
    weight = 1,
    stack = true,
    close = true,
    description = 'A flammable solvent.'
},
['hydrochloricacid'] = {
    label = 'Hydrochloric Acid',
    weight = 1,
    stack = true,
    close = true,
    description = 'A dangerous chemical.'
},
['acid'] = {
    label = 'Acid',
    weight = 1,
    stack = true,
    close = true,
    description = 'A dangerous chemical.'
},
3

3) ADD THE IMAGES TO YOUR INVENTORY

  • Open nl-university > install > images

  • Copy files from the folder and add them into your inventory image folder ox_inventory/web/images

4

SQL

Run this SQL queries

CREATE TABLE IF NOT EXISTS university_students (
    id INT AUTO_INCREMENT PRIMARY KEY,
    identifier VARCHAR(255) NOT NULL,
    name VARCHAR(255) NOT NULL,
    student_id VARCHAR(20) NOT NULL UNIQUE,
    dob DATE NOT NULL,
    gender ENUM('Male', 'Female', 'Other') NOT NULL,
    address VARCHAR(255) NOT NULL,
    guardian VARCHAR(255) NOT NULL,
    contact VARCHAR(50) NOT NULL,
    grade INT NOT NULL,
    hasAllergies ENUM('Yes', 'No') NOT NULL,
    medical TEXT,
    emergencyName VARCHAR(255),
    emergencyNumber VARCHAR(50)
);

CREATE TABLE IF NOT EXISTS university_teachers (
    id INT AUTO_INCREMENT PRIMARY KEY,
    identifier VARCHAR(255) NOT NULL,
    name VARCHAR(255) NOT NULL,
    teacher_id VARCHAR(20) NOT NULL UNIQUE,
    dob DATE NOT NULL,
    gender ENUM('Male', 'Female', 'Other') NOT NULL,
    address VARCHAR(255) NOT NULL,
    contact VARCHAR(50) NOT NULL,
    subject VARCHAR(255) NOT NULL,
    qualifications TEXT,
    emergencyName VARCHAR(255),
    emergencyNumber VARCHAR(50)
);

CREATE TABLE IF NOT EXISTS university_announcements (
    id INT AUTO_INCREMENT PRIMARY KEY,
    title VARCHAR(255) NOT NULL,
    message TEXT NOT NULL,
    created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
5

Add Job

Example: If you want to set yourself as the Director (grade 2) and your server ID is 1, you would run: /setjob 1 school 2

school = {
label = 'University of Los Santos',
type = 'education',
defaultDuty = true,
offDutyPay = false,
grades = {
    ['0'] = {
        name = 'Student',
        payment = 10
    },
    ['1'] = {
        name = 'Professor',
        payment = 30
    },
    ['2'] = {
        name = 'Director',
        isboss = true,
        bankAuth = true,
        payment = 125
        },
    },
},
6

Bell Sound Setup

Install xsound and copy the bell.ogg sound from nl-university/install/sound to xsound\html\sounds

7

INSTALL COMPLETE

Last updated