This was requested since this one "didn't work" properly. I present you a shift log resource which doesn't handout your Discord webhooks for free š„³. Testing and issues are appreciated. But should work as intended.
As you might have noticed from the CreateLog
function in server.lua
there are some predefined jobs with each triggering their own qb-log trigger
https://github.com/Disabled-Coding/dc-shiftlog/blob/e455c5f3d08ef0e38d932aa8388b240c6c4160ee/server.lua#L22
https://github.com/Disabled-Coding/dc-shiftlog/blob/e455c5f3d08ef0e38d932aa8388b240c6c4160ee/server.lua#L26
https://github.com/Disabled-Coding/dc-shiftlog/blob/e455c5f3d08ef0e38d932aa8388b240c6c4160ee/server.lua#L30
You can add as many job specific triggers as you want and add them to your QBCore log recourse. At the time of writing you can find this inside of qb-smallresources/server/logs.lua
. And add the following lines with the other webhooks you have setup.
['shiftlogPolice'] = '',
['shiftlogAmbulance'] = '',
['shiftlogRealestate'] = '',
You can always find support here in our Discord.