Pug Development
  • ๐Ÿ‘‹Welcome To Pug Development
    • ๐Ÿ“ŒInformation
  • ๐Ÿ““Scripts
    • ๐Ÿ’ŽRobbery Creator
      • ๐Ÿ“Installation
        • Inventory Items
          • QB items
          • Ox Items
        • Mini Games
      • ๐Ÿ’กThings to know
        • ๐ŸŽจHow To Use
        • ๐ŸŽฎCustom Mini Games
        • ๐Ÿ’ฃCreate Explosion
        • ๐Ÿ“‘Tab Settings
        • ๐Ÿ“ฃBank Truck & ATM Alert
        • ๐Ÿ“ฑCustom Keypad
        • ๐Ÿ’ฑMove Steps Around
        • ๐Ÿ‘ปMake Props Disappear When Looted
        • ๐ŸคนRemove Kill Screen Effect
        • ๐ŸŽPreset Heist Progression
      • ๐Ÿ“œDependency & Support
    • ๐Ÿ’ผBusiness Creator
      • ๐Ÿ“Installation
      • ๐Ÿ’กThings to know
        • ๐Ÿ”—Linking Jobs To The Menu
        • ๐Ÿ“ƒOpen Menu
        • ๐Ÿ”›Criminal crafting
        • ๐Ÿ›ฐ๏ธCreated Items
      • โ“FAQ
      • ๐Ÿ“œDependency & Support
    • ๐Ÿ”ซPaint Ball
      • ๐Ÿ“Installation
        • ๐Ÿ‚ox_inventory
        • ๐ŸฆฅDispatch/Shots Fired
        • โŒqb-anticheat
      • ๐Ÿ“œDependency & Support
      • ๐Ÿ’กThings to know
        • ๐Ÿ—บ๏ธMap Making Tutorial
        • ๐Ÿ‘šSet Team Outfits
        • ๐Ÿ“…Scoreboard
        • ๐Ÿ”Surrender
    • ๐Ÿ› ๏ธRepo Job
      • ๐Ÿ“Installation
      • ๐Ÿ“œDependency & Support
    • ๐Ÿ’‰Coke Business
      • ๐Ÿ“Installation
      • ๐Ÿ“œDependency & Support
    • ๐ŸŽฃFishing
      • ๐Ÿ“Installation
        • Inventory Items
          • QB items
          • Ox Items
        • ๐ŸŸFishing Lure
      • ๐Ÿ“œDependency & Support
      • ๐Ÿ’กThings to know
        • โ†—๏ธProgression
        • ๐Ÿ’ฏReputation
    • ๐Ÿ”ซWeapon Sling
      • ๐Ÿ“Installation
      • ๐Ÿ“œDependency & Support
    • ๐Ÿ†Battle Royale
      • ๐Ÿ“Installation
        • Inventory Items
          • QB items
          • Ox Items
        • โ˜๏ธWeather Sync
        • ๐Ÿ‚ox_inventory
        • ๐ŸฆฅDispatch/Shots Fired
        • โŒqb-anticheat
      • ๐Ÿ“œDependency & Support
    • ๐Ÿš˜Car Chopping
      • ๐Ÿ“Installation
        • Inventory Items
          • QB items
          • Ox Items
      • ๐Ÿ“œDependency & Support
Powered by GitBook
On this page
  1. Scripts
  2. Paint Ball
  3. Installation

qb-anticheat

if you are having an issue where your gun gets put away when the match starts and are using qb-anticheat find this loop in qb-anticheat/client/main.lua and replace it with this

CreateThread(function() -- Check if ped has weapon in inventory -- while true do Wait(5000)
    if LocalPlayer.state.isLoggedIn and not exports["pug-paintball"]:IsInPaintball() then

        local PlayerPed = PlayerPedId()
        local player = PlayerId()
        local CurrentWeapon = GetSelectedPedWeapon(PlayerPed)
        local WeaponInformation = QBCore.Shared.Weapons[CurrentWeapon]

        if WeaponInformation ~= nil and WeaponInformation["name"] ~= "weapon_unarmed" then
            QBCore.Functions.TriggerCallback('qb-anticheat:server:HasWeaponInInventory', function(HasWeapon)
                if not HasWeapon then
                    RemoveAllPedWeapons(PlayerPed, false)
                    TriggerServerEvent("qb-log:server:CreateLog", "anticheat", "Weapon removed!", "orange", "** @everyone " ..GetPlayerName(player).. "** had a weapon on them that they did not have in his inventory. QB Anticheat has removed the weapon.")
                end
            end, WeaponInformation)
        end
    end
end

end)

PreviousDispatch/Shots FiredNextDependency & Support

Last updated 4 months ago

๐Ÿ““
๐Ÿ”ซ
๐Ÿ“
โŒ