[QBCore] [UPDATED] [Free] philip-adminduty

Hello guys!
This is my first ever script.

Everything is opensource, do whatever you want just don’t sell it and remember to mention me if you do something with it.

Working with the latest QBCore version.
Download here

It’s just a simple admin duty script. Which changes the admin ped when duty on/off nothing else.

UPDATE v1.0.0     
  • Completly reworked the script
  • Added a admin tag above the admin head. (Can be enabled with /atag command)
  • Changed command /adminduty to /duty
  • Added config.lua where you can change everything

OLD PREVIEW

Code is accessible Yes
Subscription-based No
Lines (approximately) 76
Requirements NONE
Support No
5 Likes

This is an amazing resource, can already tell I’m about to shazam some random RP scenario and make them pause, cause I’m an admin :sunglasses:

In all seriousness, why the ped?

Hi. The ped is only for showcase. You can change the ped in the client.lua

The error happens because there is no resource called isPed.

Hi, can you share your chat script please? I love it

hello can i switch to the character model created with the custom clothing instead of using the original gta peds?

2 Likes

very nice script. Is it possible for you to use your own outfits that you define beforehand instead of standard peds?

How for example qb-clothing used?

Config.Outfits = {
    ['Projectlead'] = {
        -- Job
        ['male'] = {
            -- Gender
            [0] = {
                -- Grade Level
                [1] = {
                    -- Outfits
                    outfitLabel = 'Admin',
                    outfitData = {
                        ['pants'] = {item = 24, texture = 0}, -- Pants
                        ['arms'] = {item = 19, texture = 0}, -- Arms
                        ['t-shirt'] = {item = 58, texture = 0}, -- T Shirt
                        ['vest'] = {item = 0, texture = 0}, -- Body Vest
                        ['torso2'] = {item = 55, texture = 0}, -- Jacket
                        ['shoes'] = {item = 51, texture = 0}, -- Shoes
                        ['accessory'] = {item = 0, texture = 0}, -- Neck Accessory
                        ['bag'] = {item = 0, texture = 0}, -- Bag
                        ['hat'] = {item = -1, texture = -1}, -- Hat
                        ['glass'] = {item = 0, texture = 0}, -- Glasses
                        ['mask'] = {item = 0, texture = 0} -- Mask
                    }
                },
                [2] = {
                    outfitLabel = 'Supporter',
                    outfitData = {
                        ['pants'] = {item = 24, texture = 0}, -- Pants
                        ['arms'] = {item = 20, texture = 0}, -- Arms
                        ['t-shirt'] = {item = 58, texture = 0}, -- T Shirt
                        ['vest'] = {item = 0, texture = 0}, -- Body Vest
                        ['torso2'] = {item = 317, texture = 3}, -- Jacket
                        ['shoes'] = {item = 51, texture = 0}, -- Shoes
                        ['accessory'] = {item = 0, texture = 0}, -- Neck Accessory
                        ['bag'] = {item = 0, texture = 0}, -- Bag
                        ['hat'] = {item = 58, texture = 0}, -- Hat
                        ['glass'] = {item = 0, texture = 0}, -- Glasses
                        ['mask'] = {item = 0, texture = 0} -- Mask
                    }
                }
            },
UPDATE v1.0.0
  • Completly reworked the script
  • Added a admin tag above the admin head. (Can be enabled with /atag command)
  • Changed command /adminduty to /duty
  • Added config.lua where you can change everything

Have a good day everybody :slight_smile:

2 Likes

Hi, I seem to have some issues with this script.

When not on duty and then using /duty, the notification says that I went OFF duty (reversed?), then when I use /duty again to supposedly go OFF duty, the notification says that I went ON duty AND I don’t get turned back into my normal ped.

Also, using /atag crashes my fivem.

See the screenshot…chat shows I went on duty, notification shows I am no longer on duty.

Hello how can I insert self-defined clothing and where?

where can i paste that?

1 Like

Hi this script is doesn’t work for me. Idk why

it would be cool if you had different groups and you could designate a different ped for each. :slight_smile:

I would also personally love this over having a ped