LC-Development
  • ๐Ÿ‘‹Welcome to HapticCode
  • ๐Ÿ“šLibrary
    • ๐Ÿ–ฅ๏ธHaptic-Lib
      • ๐Ÿ”ง Config
      • ๐Ÿ“™ Usage
      • ๐ŸคClient Functions
        • Blips
        • Items
        • Notify
        • Target
        • Peds
      • ๐Ÿ’ปServer Functions
        • Items
        • Jobs
        • Money Functions
        • Notify
  • ๐Ÿ˜‡Remastered Scripts
    • ๐Ÿ›’ LC-Businesses
      • ๐ŸŽฏJob Blips
      • ๐Ÿ’ผ Duty Locations
      • โ„๏ธ Fridges
        • Fridge Shops
        • Fridge Stashs
        • Final Step
      • ๐Ÿ“ฅ Trays
      • ๐Ÿ” Drink/Fryer/Grill/Pack
      • ๐Ÿ“ฆShared Employee Stash
      • ๐Ÿ“ฆPrivate Employee Stash
      • ๐Ÿ“ฆTable Stashs
      • ๐Ÿช‘ Chairs
      • ๐Ÿ’ƒ NPC Dancers/Strippers
      • ๐ŸŽง DJ Booths
      • ๐Ÿ’ฐCash Registers
      • ๐Ÿง‘Custom Animations
      • ๐Ÿ”Consumables
    • ๐Ÿ›๏ธLC-Cityhall
      • ๐Ÿ“Config
      • ๐Ÿ’ณLicenses
  • Haptic
    • ๐Ÿ˜ท Haptic-Gangs
      • ๐Ÿ”ง Initial Config
      • ๐Ÿ“š Zone Configuration
      • ๐Ÿ’ŠDrug Dealing
        • ๐Ÿ’Š Zone Based Dealing
      • ๐Ÿ’€Death Tracker
      • ๐Ÿ’ปExports
      • ๐Ÿ“ Integrations
        • ๐Ÿš‘ QB-AmbulanceJob
        • ๐Ÿ’Ž QB-Jewellery
        • ๐Ÿ’ต QB-StoreRobbery
        • ๐Ÿ’ฆRcore Integration
      • ๐Ÿ—๏ธCommon Issues
    • ๐Ÿ”ซHaptic-Ammunation
      • ๐Ÿ“Config
    • ๐Ÿ’ŠHaptic-DrugEffects
Powered by GitBook
On this page
  • Shared/Config.lua
  • items-jobs.lua
  • Shops.lua
  • Stash.lua
  1. Library
  2. Haptic-Lib

๐Ÿ”ง Config

HapticLib is extremely easy to configure. 99% of it is open source other than private parts needed for LC-Scripts (Only applies to the version distributed by LC-Development, the version on GitHub is fully open source but wont be compatible with most LC-Dev Scripts.

Shared/Config.lua

Config = {}

Config.Debug = true -- Enables Debug Prompts + Third Eye Debugging

Config.Notify = "qb" -- okok/qb/ox/standalone (Standalone will need your own Logic)

Config.Menu = "qb" -- Only Supports QB, if you want to make it take the data the same way and make it work with ox you're more than welcome

Config.Target = "ox" -- qb/ox (Make sure its LowerCase) For god sakes use OX-Target, its so much better

Config.BankingStatementsEnabled = true -- If false lower option is ignored
Config.BankingStatementMethod = "okok" -- Currently Only Supports okokbanking, if you want to add your own set it to standalone and implement it yourself

Config.SocietyBanking = "okok" -- Support okok, qb-banking, qb-management, standalone

items-jobs.lua

This file will auto add items to qb-core incase you dont want to put them in qb-core/shared/items.lua

This only supports the latest QB-Core Builds

ConfigItemJob = {}

ConfigItemJob.Items = {
	["burger-bleeder"] 				 = {["name"] = "burger-bleeder", 			 	["label"] = "Bleeder", 					["weight"] = 1000, 		["type"] = "item", 		["image"] = "lc_bs_bleeder.png", 			["unique"] = false, 	["useable"] = true, 	["shouldClose"] = true,    ["combinable"] = nil,   ["description"] = "Sates Hunger."},
}

Shops.lua

I made this because a lot of my old scripts that where made dont support the new qb-shops etc. If you set job to nil then anyone can access them (Only supports OX-Target, if you want to use qb-target implement it yourself)

ConfigShops = {}

-- Currently only works with OX, if you want it to work with QB-Target implement it yourself.

ConfigShops.Type = {
	-- To Make a new Shop Category Copy From Here To 
	["ambulance"] = {
		label = "Ems Store",
		items = {
			{ name = 'radio',                   price = 0, amount = 999 },
	        { name = 'bandage',                 price = 0, amount = 999 },
	        { name = 'painkillers',             price = 0, amount = 999 },
	        { name = 'firstaid',                price = 0, amount = 999 },
	        { name = 'weapon_flashlight',       price = 0, amount = 999 },
	        { name = 'weapon_fireextinguisher', price = 0, amount = 999 },
	        { name = 'leo-gps', 				price = 0, amount = 999 },
		}
	}, ---- HERE
}


ConfigShops.Locations = {
	[1] = {uniqueid = "ambulance1", type = ConfigShops.Type["ambulance"], location = vector3(313.46, -595.21, 42.8), rotation = 0, job = "ambulance", icon = "fa fa-hand", label = "Open Armoury"},
	[2] = {uniqueid = "ambulance2", type = ConfigShops.Type["ambulance"], location = vector3(1777.86, 3650.49, 34.85), rotation = 0, job = "ambulance", icon = "fa fa-hand", label = "Open Armoury"}
}

Stash.lua

If like me the latest qb-core build broke a bunch of your escrowed scripts, that have stashes etc such as police jobs etc i made this basic functionality to create job locked stash's

ConfigStash = {}

-- Currently only works with OX, if you want it to work with QB-Target implement it yourself.

ConfigStash.AmbulanceStashs = { 
	[1] = { location = vector3(307.7, -601.18, 43.121), icon = "fa fa-hand", label = "Open Stash"},
	[2] = { location = vector3(1784.43, 3652.48, 34.85), icon = "fa fa-hand", label = "Open Stash"}
}


ConfigStash.JobStash = {
	--Example
	--[[["uniquejobstash"] = { 
		job = "ambulance",
		stashlabel = "Custom Stash Test",
		maxweight = 400000,
		slots = 500,
		label = "Custom Stash",
		location = vector3(306.12, -597.3, 43.27),
		rotation = 0,
		icon = "fa fa-hand",
		label = "Open Stash",
	}--]]
}
PreviousHaptic-LibNext๐Ÿ“™ Usage

Last updated 1 year ago

๐Ÿ“š
๐Ÿ–ฅ๏ธ