GithubHelp home page GithubHelp logo

drk-policesystem's Introduction

Darrk Police System V1

All you need for the police :)

Preview

App Screenshot

App Screenshot

App Screenshot

App Screenshot

Dependencies

[qb-core] (Latest)
[qb-target] (Optional)
[drk-lib] (Latest)
[oxmysql] (Latest)

Installation

qb-core/server/player.lua:114

PlayerData.metadata['showRadio'] = PlayerData.metadata['showRadio'] or true

qb-core/server/player.lua:144

PlayerData.metadata['police'] = PlayerData.metadata['police'] or {}
PlayerData.metadata['police']['points'] = PlayerData.metadata['police']['points'] or 0
PlayerData.metadata['wings'] = PlayerData.metadata['wings'] or {
    ['weapons'] = false,
    ['k9'] = false,
    ['undercover'] = false,
    ['pilot'] = false
}

qb-core/server/player.lua:176
Replace Job With This

if PlayerData.job and PlayerData.job.name and not QBCore.Shared.Jobs[PlayerData.job.name] then PlayerData.job = nil end
PlayerData.job = PlayerData.job or {}
PlayerData.job.name = PlayerData.job.name or 'unemployed'
PlayerData.job.label = PlayerData.job.label or 'Civilian'
PlayerData.job.payment = PlayerData.job.payment or 10
PlayerData.job.type = PlayerData.job.type or 'none'
PlayerData.job.busy = PlayerData.job.busy or false

if QBCore.Shared.ForceJobDefaultDutyAtLogin or PlayerData.job.onduty == nil then
    PlayerData.job.onduty = QBCore.Shared.Jobs[PlayerData.job.name].defaultDuty
end
PlayerData.job.isboss = PlayerData.job.isboss or false
PlayerData.job.grade = PlayerData.job.grade or {}
PlayerData.job.grade.name = PlayerData.job.grade.name or 'Freelancer'
PlayerData.job.grade.level = PlayerData.job.grade.level or 0

Optional
qb-radialmenu/config.lua
Search for ["police"] and add This

{
    id = 'Darrk_System',
    title = 'Police System',
    icon = 'tablet',
    type = 'client',
    event = 'drk-policesystem:client:opensystem',
    shouldClose = true
},

Credits

drk-policesystem's People

Contributors

darr0k avatar

Forkers

drazendrazan

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.