Skip to content

Latest commit

 

History

History
45 lines (32 loc) · 1.55 KB

README.md

File metadata and controls

45 lines (32 loc) · 1.55 KB

qb-holster

QB-Core holster script that let you wear and remove holster to quickly draw a gun

Features

  • Quickly wear and remove holster
  • Holster as item
  • Customizable draw time
  • Offer support via issues and discord (Know atleast the basis of fivem and scripts)
  • Little Axolotl#3953

Previews

Without holster

Using holster

With holster

Dependencies:

qb-core

ps-progressbar (OPTIONAL)

Installation

Go to qb-small resources/client/weapdraw.lua then set the same number as config to true

--Line ~150
local HolsterVariant = GetPedDrawableVariation(ped, 8) --Replace with category number
if HolsterVariant == 130 then --Replace to match config
    WearingHolster = true
elseif HolsterVariant == 160 then --Replace to match config
	WearingHolster = true
end

Navigate to /qb-inventory/html/images and drag holster.png from image folder to /qb-inventory/html/images

add in qb-core/shared/items.lua

['holster']						 = {['name'] = 'holster', 						['label'] = 'Holster', 					['weight'] = 5, 		['type'] = 'item', 		['image'] = 'holster.png',		 		['unique'] = true, 		['useable'] = true, 	['shouldClose'] = true, 	['combinable'] = nil,  ['description'] = 'An holster to quickly draw your handgun.'},

Feel free to fork and contribute with Pull requests!