AKL DOCUMENTATION
  • 👋Introduction
  • GUSTI RESOURCES
    • ⛏️gusti-minerjob
      • Setup
      • Update
    • 🚙gusti-membershipvehicle
    • 🍗gusti-butcherjob
    • 📣gusti-iosnotify
      • Setup
      • Usage
    • 🌐gusti-status server web
      • Setup
    • ⏳gusti-loadscreen
      • Setup
      • Building
    • 💎gusti-vipmenu
      • Setup
    • 🛠️gusti-welderloot
      • Common Issues
      • Setup
    • 🏃‍♂️gusti-boostsprint
      • Setup
    • 🚀gusti-boostfps
    • 📹gusti-cctv
      • Setup
    • 📅gusti-datetime
      • Setup
    • ☢️gusti-radzone
      • Setup
    • 🔫gusti-hidereticle
    • 🚗gusti-givevehicle
      • Setup
      • Usage
    • 💥gusti-duarmemek
      • Setup
      • Usage
  • 🛡️gusti-vipsystem
    • Setup
    • Usage
  • CODE SNIPPETS
    • Fix Animasi
    • Fix Spam Punch
    • Boost Fps
    • Disable Ambient
    • Send Webhook Messages
    • Spawns GTA V Online Train On Fivem
    • Removing / Adding Limit Map
    • Blacklist Name
    • Item Probability
    • Anti Duplicate Vehicle
    • How To Unbind Keys
Powered by GitBook
On this page
  • Installation
  • Configuration
  • Ox Inventory
  • Framework
  • Custom Notification
  1. GUSTI RESOURCES
  2. gusti-boostsprint

Setup

Installation

Follow the instructions below to run the gusti-boostsprint script on your server

  • Download latest version in github

  • Extract rar file [STANDALONE] Gusti Boostsprint

  • Copy / cut gusti-boostsprint into your server's resources folder

  • Drag and drop the gusti-boostsprint.sql file into your database

  • Open server.cfg

  • Add the gusti-boostsprint script by ensure gusti-boostsprint in server.cfg

  • Restart server

  • Finished

  • Now you can enjoy the features of the gusti-boostsprint script on your server

Configuration

Config = {}

Config.Framework = "ESX" -- ESX/QBCore
Config.UseOxInventory = true -- Set this to true if you are using ox_inventory
Config.DurationBoostSprint = 10000 -- Time how long it takes to increase running speed in seconds

Config.Language = {
    active = "Your power is now full power",
    notactive = "You are exhausted"
}

Ox Inventory

If you set UseOxInventory to true then you have to add a little code inside the ox_inventory script

ox_inventory/data/items.lua
['pill_boost_sprint'] = {
    label = 'Pill Boost Sprint',
    weight = 1,
    stack = true,
    close = true,
},
ox_inventory/modules/items/client.lua
Item('pill_boost_sprint', function(data, slot)
    TriggerEvent("gusti-boostsprint:active")
end)

Framework

If you are using the Esx framework, you will need to add items to the database

gusti-boostsprint/setup/gusti-boostsprint.sql
INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES
    ('pill_boost_sprint', 'Pill Boost Sprint', 1, 0, 1)
;

If you are using the QBCore framework, you need to add this item line

qb-core/shared/items.lua
['pill_boost_sprint']               = {['name'] = 'pill_boost_sprint',                 ['label'] = 'Pill Boost Sprint',         ['weight'] = 1,            ['type'] = 'item',         ['image'] = 'pill_boost_sprint.png',       ['unique'] = true,          ['useable'] = true,      ['shouldClose'] = true,      ['combinable'] = nil,   ['description'] = 'Use this pill to increase your stamina'},

Custom Notification

You can customize notifications according to your wishes, which can be found on line 45 > 52

gusti-boostsprint/client/main.lua
RegisterNetEvent('gusti-boostsprint:notify')
AddEventHandler('gusti-boostsprint:notify', function(args, _type, time)
    if Config.Framework == "ESX" then
        ESX.ShowNotification(args, _type, time)
    elseif Config.Framework == "QBCore" then
        QBCore.Functions.Notify(args, _type, time)
    end
end)
Previousgusti-boostsprintNextgusti-boostfps

Last updated 1 year ago

🏃‍♂️