Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Config = {}
- Config.CoreResource = "qb-core" -- change this to your core resource name
- Config.MinYOffset = -0.3 -- minimal wheel rotation value (adjust this to your preference)
- Config.MaxYOffset = 0.3 -- maximal wheel rotation value (adjust this to your preference)
- Config.MinZOffset = 0.15 -- minimal car suspension height (adjust this to your preference)
- Config.MaxZOffset = -0.2 -- maximal car suspension height (adjust this to your preference)
- Config.RenderDistance = 100.0 -- radius in which stance properties are visible to player
- Config.SyncingTime = 5 -- if wheels flicker, lower this (values from 0-50) (in ms)
- Config.ServerSyncTime = 2000 -- how often does server check for stanced vehicles (in ms)
- Config.PreviewUpdateTime = 2000 -- how often does the preview update for other players, not you (in ms)
- Config.HasToBeRepaired = false -- If true, the vehicle has to be repaired before it can be stanced
- Config.RemoveItemOnSave = false -- If true, the item will be removed from the players inventory when the settings are saved
- Config.UseAllowList = false -- If true, only vehicles in the allowlist can be stanced
- Config.VehicleAllowlist = {
- -- [`adder`] = true,
- }
- Config.VehicleBlacklist = {
- -- [`adder`] = true,
- }
- Config.OnlyOwnedVehicles = true -- If true, only owned vehicles can be stanced
- Config.OnlyOwner = false -- If true, only the owner of the vehicle can stance it (Config.OnlyOwnedVehicles has to be also true), (if Config.UseJobRestrictions = true, this will be ignored)
- Config.UseJobRestrictions = false -- If true, only certain jobs can stance vehicles
- Config.JobRoles = {
- -- {name = "mechanic" , minJobGrade = 0 },
- -- {name = "tuner" , minJobGrade = 0 },
- -- {name = "lscustoms" , minJobGrade = 0 }
- }
- Config.UseLocationRestrictions = false -- If true, you can only stance car in certain locations
- Config.Locations = {
- -- {coords=vector3(117.42, -1002.96, 28.77), radius=20.0},
- }
- Config.BlacklistedClasses = {
- [8] = true, -- Motorcycles
- [13] = true, -- Cycles
- [14] = true, -- Boats
- [15] = true, -- Helicopters
- [16] = true, -- Planes
- [17] = true, -- Service
- [29] = true, -- Military
- [20] = true, -- Commercial
- [21] = true, -- Trains
- [22] = true, -- Open Wheel
- }
- local QBCore = exports[Config.CoreResource]:GetCoreObject()
- function Notify(text) -- if you use any custom notification system, change this
- QBCore.Functions.Notify(text)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement