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
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",
}--]]
}