Code Monkey home page Code Monkey logo

dc-shiftlog's Introduction

dc-shiftlog

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.

How do I setup logs?

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'] = '',

Be aware! The above is case sensitive.

You can always find support here in our Discord.

Donations are greatly appreciated

ko-fi

image

dc-shiftlog's People

Contributors

chatdisabled avatar noobysloth avatar

Stargazers

toby avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.