Skip to content

How To Do

Here you can find out how to do some things.

How To Jobs works?#

Use the /jobhelp command to learn how jobs work.

This command will work differently for each job. It will open a job-specific introduction menu.


How to enable SideJob - Other Job option#

With this feature, you can enable people to use this system as a 2nd or 3rd profession by not using setJob functions by core.

lua
Config.SideJob = true -- If you want to use the side job system, you can activate it here. If you want to use the main job system, you can disable it.

Send Trigger when a job is finished#

When a profession is finished, you can send a Trigger/Export to another script using the function below with the finished profession information.

So you can give things like Vehicle, Item, XP, Daily reward, Extra item.

lua
Config.JobSuccess = function(job, reward, index, currTime, usedExtraTime)
    print('Job Success', job, reward, index, currTime, usedExtraTime)
    -- Here your extra codes
end

Making a Level query when choosing a job#

If you have a Level script on your server, you can make a query by finding the codes and file below. Thus, people will no longer be able to take that job without having the required level.

**wais-jobpack Script does not have its own Level/XP System.**** This process applies to people using an additional script.**

For this go to the following file path. wais-jobpack/client/editable.lua

text
function selectJob(job)
    -- You can put your own queries or content here. 
    -- If you want to use the level system, you can add the user level query here.
    
    -- ENTER YOUR LEVEL QUERY HERE
    -- ENTER YOUR LEVEL QUERY HERE
    
    local playerLevel = exports["my-level-script"]:getLevel()
    local jobLevels = {
            ["pizza_delivery"] = 1
            ["news_delivery"] = 1,
            ["mobile_hotdog"] = 1,
            ["forklifter"] = 4,
            ["gardener"] = 4,
            ["trucker"] = 5,
            ["roadhelper"] = 6,
            ["bus_driver"] = 6,
            ["fire_department"] = 8,
            ["hunter"] = 8,
            ["detectorist"] = 5,
            ["project_car"] = 10,
            ["diver"] = 5,
            
            --["job-name"] = Required level ---@number
            -- Add here the level required for the professions in the Config to be used as above
        }
    
    if jobLevels[job] ~= nil and jobLevels[job] < playerLevel then
        -- The player does not have enough Level to perform this job.
        return Config.Notification(Lang('job'), "Your level is not enough", "error", 5000)
    end
    
    --If the player's Level is sufficient for the profession he will take, the following codes will work
    
    if Config.SideJob then
        TriggerEvent('wais:set:sideJob', job)
    else
        TriggerServerEvent('wais:setJob', job)
    end
    SetNewWaypoint(Config.Jobs[job].menu.job_menu.x, Config.Jobs[job].menu.job_menu.y)
end

Crane/Bucket Controls of Electrician Job#

If you are doing the job in Multiplayer:

  • Get in the driver's seat.
  • Have your friend take the seat next to you.
  • Press H long in the driver's seat and lower the vehicle's feet to the ground.
  • Once the legs of the vehicle are on the ground, your friend will be given the option to switch to Crane/Bucket. He can start controlling it by pressing that button.

The person who will provide the Crane/Bucket controls of the vehicle must definitely have the profession of “electrician” as a SideJob or CurrentJob.


Run with a build version lower than 3258#

You can run the jobpack on version 3095 or lower. To do so, follow these steps:

  • Find and delete the code gameBuild:3258 in fxmanifest.lua.
  • Go to the pizza_delivery table in the Config file and find the variable [“disabled”] = false. Change the value from false to true.

As a result, you won't be able to use your pizza job in any way.


Have a job but nothing is happening / showing#

The reason for this is that you have not set up the jobs or have set them up incorrectly.

  • For ESX, you need to read or add the jobs to the job and job_grades tables.
  • For QBCore || QBox, you need to define the jobs in Jobs.lua.

Bus job / Peds doesn't spawn on bus stop#

  • This is usually caused by a script that deletes ped spawn points on the anti-cheat or client side.
  • Add ped or wais-jobpack to the whitelist in your anti-cheat or blacklist script. This will resolve the issue.

Diver / Doesn't give Sea Urchin#

  • Collected sea corals and other such items are not given to you as items.
  • The job will come to an end when all the necessary corals and other items have been collected.

Vehicles / NPCs are disappearing, Weapons are being deleted#

  • The reason for the problem is very clear: the jobpack script does not remove these tools or NPCs until the job is complete.
  • These are Anticheat or Blacklist scripts that protect your server from cheaters.
  • Make the wais-jobpack safe in your anti-cheat script. Or try adding NPCs, vehicles, and weapons in the config to the safe list.

Skill Check too fast#

Changing this is very easy. Do the following:

  • Go to this file: wais-jobpack/client/editable.lua
  • Find the skillCheck function and change values such as medium, hard, easy.

Uniform / Clothing Requirement#

People can start careers without the right attire. To change this, do the following:

  • Go to this file: wais-jobpack/config.lua
  • Find the Config.MustDressOutfit = false variable and change the value from false to true.