ðŸ‘ŪAdd Job

You can learn how to add jobs that can collect evidence for the Evidence script here.


Make sure that the Job has already been created!

  • For this, visit wais-evidence/Config.lua.

  • Here is an example for adding a new job

Config.Jobs = {
    ["your job name"] = {
        ["menu"] = vector3(0.0, 0.0, 0.0),
        ["target"] = false, -- If you set this option to true, the coords, text and distance variables will be valid for target -- Access and interact with evidence on the ground with target. 
        ["menu_distance"] = 0.0, -- Distance required for menu access
        ["evidence_distance"] = 0.0, -- Distance at which evidence can be seen or interacted with
        ["items"] = {
            ["bag"] = "evidence_bag", -- Item name to be given to the person when the evidence on the ground is collected
            ["need_bag"] = false, -- The option of whether an empty evidence bag is required for the collection of evidence on the ground. ( True => Empty evidence bag would be needed, False => No need for an empty evidence bag)
            ["empty_bag"] = "empty_evidence_bag", -- Item name of Empty evidence bag
        }
    },
}

Last updated