Giter VIP home page Giter VIP logo

b1-skillz's Introduction

This is the QBCore Branch

For more support or to see more of our resources you can join the Burn One Studios Discord discord

[ What is this? ]

  • A skillsystem based on GTA's existing skills.
  • Very easy to configure, just check the config.
  • You can for example add this to your gym script to get stronger.

[ Functions ]

  • Skills displays in ESC -> Stats -> Skills
  • All the skills that is added by default have a unique "function", for example if you run your stamina will increase by the time.
  • Depending on the skill level your character will perform the skill better, for example if your stamina is high you can run longer without getting exhausted.
  • Every Config.UpdateFrequency (seconds) it will remove the current RemoveAmount for that skill.

[ Installation ]

  • Download the resource and drop it to your resource folder.
  • Import the SQL file to your servers DB
  • Add start B1-skillz to your server.cfg

[ How do I use it? ]

  • To Update a skill you do following:
    exports["B1-skillz"]:UpdateSkill(skill, amount)

so if you were to add 2% to Stamina you do

    exports["B1-skillz"]:UpdateSkill("Stamina", 2)
  • An export to check to see if a skill is equal or greater than a value
    exports["B1-skillz"]:CheckSkill(skill, val)

so if you want to check if your lung capacity is 50 or over you would do

exports["B1-skillz"]:CheckSkill("Lung Capacity", 50, function(hasskill)
    if hasskill then
        print("Lung Capacity 50 or over")
    else
        print("Lung Capacity lover than 50")
    end
end)
  • There is also an export to get the current skill if you were to do something from another script
    exports["B1-skillz"]:GetCurrentSkill(skill)

so if we wanted to print out the Current of the "Shooting" it will look like this

CreateThread(function()
local shootingskill = exports["B1-skillz"]:GetCurrentSkill("Shooting")
QBCore.Debug(shootingskill) --prints the table to the server console
print(shootingskill.Current) --prints "Current" of that skill to the clients console
end)

[ Previews ]

Preview of skills menu

b1-skillz's People

Contributors

kingsage311 avatar kamuikody avatar theilleniumstudios avatar mystyleigh avatar

Forkers

mistuhhpalmer

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.