Coder Social home page Coder Social logo

710-jobcreator's Introduction

In-Game Simple Job Creator.

image

Planned updates

  • Add Gangs to be able to be created ingame also!
  • Add Items to be able to be created ingame also!
  • Try and figure out a way around bossmenu or build something else.

This currently does not add the bossmenu location to the job due to qb-bossmenu restrictions. This should be more possible when qb-management comes out, or if we find another soulution. It still puts boss menu locations in the DB so you can bring them to bossmenu config easier! It makes the menu where you are standing when you click create job!

Usage

Just use the command you set in the config to open up qb-input to create the job. Currently the default is 5 ranks 0-4. You can also use this export below to call this from other jobs. Or to use with my 710-econSystem Script

exports['710-jobCreator']:createJob(source)

Unless qb-core has already gotten this update(1.0.1) add this below - Huge thanks to idris!

Add this to qb-core/client/events.lua all the way at the bottom

RegisterNetEvent('QBCore:Client:OnSharedUpdate', function(tableName, key, value)
    QBCore.Shared[tableName][key] = value
    TriggerEvent('QBCore:Client:UpdateObject')
end)

RegisterNetEvent('QBCore:Client:OnSharedUpdateMultiple', function(tableName, values)
    for key, value in ipairs(values) do
        QBCore.Shared[tableName][key] = value
    end
    TriggerEvent('QBCore:Client:UpdateObject')
end)
  • After that Drag the exports.lua (From Important Folder) into your qb-core/server folder.
  • Be sure to add exports.lua to your fxmanifest!
  • Be sure to run sql.sql in your database! From IMPORTANT folder.

710-jobcreator's People

Contributors

kmack710 avatar

Stargazers

 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.