justUWV

This is a dutch jobcenter script and MLO

Installation

  1. Download the script from keymaster

  2. Extract the zip folder

  3. Drop the "justUWV_Script" into your server resources

  4. Add the "justUWV_Script" to your server.cfg Done!

Adding jobs

You can add as many jobs as you want! The script supports 6 jobs per page, but it will automaticlly add pages if you have more then 6! Here is how you can add them:

Config.jobs = {
      job1 = {
            name = "unemployed", -- job in Database (same one you use with /setjob)
            label = "Unemployed", -- Label
            grade = 0, -- grade 
            description = "", -- Job description
            img = "unemployed.png" -- Image name
      },
      job2 = {
            name = "unemployed", -- job in Database (same one you use with /setjob)
            label = "Unemployed", -- Label
            grade = 0, -- grade 
            description = "", -- Job description
            img = "unemployed.png" -- Image name
      },
      -- etc.
}

For the image, you can put your image in: html/img and then give it any name you want, you can set the image name in the config!

Custom notify

function Notify(title, message, time, type)
      TriggerClientEvent("justNotify:notify", source, title, message, time, type)
end

This might require a little coding experience, but you can add any notify you want!

Targeting / third eye

We added the option to add a targeting script! Although, this does take some coding experience. We are gonna try to explain it as easy as possible! First of all, make sure that "Config.enableTargeting" is set on true, and in the "Config.markerSettings", enable is set to false, just like this:

Config.enableTargeting = true
Config.markerSettings = {
      enable = false,
      -- rest of the code --

Then, you scroll down to the targeting function:

function targeting()
      exports.ox_target:addSphereZone({
            coords = vec3(-1.8139, -697.1011, 46.1660),
            size = vec3(2, 2, 2),
            rotation = 257.0,
            debug = false,
            options = {
                {
                    name = 'open_jobcenter',
                    event = 'justUWV_Script:showNUI', -- Make sure that this event is triggered
                    icon = 'fa-solid fa-suitcase',
                    label = 'Talk with guy'
                }
            }
      })
end

In here, we standart put ox targeting, but you can put in anyone you want! Just make sure that the event the target script triggers, is "justUWV_Script:showNUI"!

Last updated