DH | StaffMode
Framework Compatibility
DH StaffMode works for QBCore Only, but we are willing to convert this to ESX Framework on request.
Installation
Download DHStaffModefrom your keymaster
Drag the file into your resources folder and "ensure DHStaffMode" in your server.cfg
Configure the cloting inside cl_staffon.lua. to match the numbers of your staff uniform. Shown below.
SetPedComponentVariation(ped,11,737,5,0) --Jacket11 - 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