Skip to content

[Bug?] - issue with job grades #20

@Griefa

Description

@Griefa

Hey,

So Im trying to get the job grades work correctly and coming up short. This is how I did it but it doesnt seem to work correctly. The option is disabled even if I set myself to police with the grade 0. Am I doing something wrong or am I just severely disabled?

exports.interact:AddInteraction({
    coords = vec3(603.8867, 7.1181, 87.8019),
    distance = 8.0, -- optional
    interactDst = 1.0, -- optional
    id = 'vinewoodArmory', -- needed for removing interactions
    name = 'Vinewood Armory', -- optional
    groups = {
        ['police'] = 0, -- Jobname | Job grade
    },
    options = {
         {
            label = 'Access Armory',
            action = function(entity, coords, args)
              
                    TriggerEvent('av_shops:open', "PDArmory")
               
            end,
        },
    }
})```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions