[FREE] - [QB] Buff And Skill System GYM

Update

  • Fixed some known bugs and updated the setup lines

Features

  • If you eat redbull and chocolate and do sports, you will gain more stamina and strength. (2x)
  • If you drive your vehicle at the speed you set, your driving ability will skill
  • If you front-lift on the motorcycle, your Wheelie ability will skill
  • You need to rest after exercising
  • Sports area and shops can be duplicate
  • You can see the progress of your character with the help of the UI
  • Easy configurable Config (everything is adjustable)
  • Script using full qb-target
  • Buff System
  • Skill System

Dependencies

Download

In-Game Images

Details

image

image

image

image

image

image

image

image

My Other Release

Code is accessible Yes
Subscription-based No
Lines (approximately) 570
Support Yes
8 Likes

I would love this on ESX!

2 Likes

Many thanks! :orange_heart:

1 Like

you could convert it since its open source ;D

Installation guide is okay but the last step for Skill System Setup isn’t very clear to people that are kinda new to this.

It says (* Find the qb-core/server/player and open, find the function QBCore.Player.CheckPlayerData(source, PlayerData) line and do as follows)

PlayerData.metadata["skill"]  = PlayerData.metadata["skill"]  ~= nil and PlayerData.metadata["skill"] or {
	["Stamina"] = {["Current"] = 10.0, ["Stat"] = "MP0_STAMINA", ["RemoveAmount"] = 0}, 
	["Strength"] = {["Current"] = 5.0, ["Stat"] = "MP0_STRENGTH", ["RemoveAmount"] = 0 },
    ["Lung Capacity"] = {["Current"] = 5.0, ["Stat"] = "MP0_LUNG_CAPACITY", ["RemoveAmount"] = 0 },
    ["Driving"] = {["Current"] = 0.0, ["Stat"] = "MP0_DRIVING_ABILITY", ["RemoveAmount"] = 0 },
    ["Wheelie"] = {["Current"] = 0.0, ["Stat"] = "MP0_WHEELIE_ABILITY", ["RemoveAmount"] = 0 }
}

But where in that section does it go?
When you get to that section it looks like this:

(function QBCore.Player.CheckPlayerData(source, PlayerData)
PlayerData = PlayerData or {}
local Offline = not source

if source then
    PlayerData.source = source
    PlayerData.license = PlayerData.license or QBCore.Functions.GetIdentifier(source, 'license')
    PlayerData.name = GetPlayerName(source)
end

applyDefaults(PlayerData, QBCore.Config.Player.PlayerDefaults)

if GetResourceState('qb-inventory') ~= 'missing' then
    PlayerData.items = exports['qb-inventory']:LoadInventory(PlayerData.source, PlayerData.citizenid)
end

return QBCore.Player.CreatePlayer(PlayerData, Offline)

end)

and isn’t very clear on where that section of code should be added.

Thanks in advance.