DH | StaffMode

Framework Compatibility

DH StaffMode works for QBCore Only, but we are willing to convert this to ESX Framework on request.

Installation

  1. Download DHStaffModefrom your keymaster

  2. Drag the file into your resources folder and "ensure DHStaffMode" in your server.cfg

  3. Configure the cloting inside cl_staffon.lua. to match the numbers of your staff uniform. Shown below.

SetPedComponentVariation(ped,11,737,5,0) --Jacket

11 - Means the clothing is a jacket

737 - Is the Jacket Number 5 - Is the Texture of jacket 737.

There are the only Numbers you should worry about when changing the clothing

`
        QBCore.Functions.TriggerCallback("Hanssen:GetPlayerData", function(data)
            if data == "male" then
                SetPedPropIndex(ped,0,-1,0,0) --hat
                SetPedComponentVariation(ped,3,1,0,0) --hand
                SetPedComponentVariation(ped,4,329,0,0) --legs
                SetPedComponentVariation(ped,6,239,1,2) --shoes
                SetPedComponentVariation(ped,7,0,0,0)
                SetPedComponentVariation(ped,9,0,0,0) --vest
                SetPedComponentVariation(ped,10,4,0,0)
                SetPedComponentVariation(ped,8,15,0,0) --Undershirt
                SetPedComponentVariation(ped,5,0,0,0) --Undershirt
                SetPedComponentVariation(ped,11,737,0,0) --Jacket
            elseif data == "female" then
                SetPedPropIndex(ped,0,-1,0,0) --hat
                SetPedComponentVariation(ped,3,1,0,0) --hand
                SetPedComponentVariation(ped,4,346,5,0) --legs
                SetPedComponentVariation(ped,6,8,5,2) --shoes
                SetPedComponentVariation(ped,7,0,0,0)
                SetPedComponentVariation(ped,9,0,0,0) --vest
                SetPedComponentVariation(ped,10,4,0,0)
                SetPedComponentVariation(ped,8,16,0,0) --Undershirt
                SetPedComponentVariation(ped,5,0,0,0) --Undershirt
                SetPedComponentVariation(ped,11,938,0,0) --Jacket
            end
                
        end, ped)

Configuration

Add your BotName, footer and Webhook url for where you want your logs to go when a staff member uses the /staffon and /staffoff command.

Config.BotName = "BOTNAME"
Config.BotFooter = "FOOTER"
Config.WebHookURL = "WEBHOOKURL"

Last updated