Advertisement
Guest User

stancer config

a guest
Feb 12th, 2024
411
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.47 KB | None | 0 0
  1. Config = {}
  2.  
  3.  
  4. Config.CoreResource = "qb-core" -- change this to your core resource name
  5.  
  6.  
  7. Config.MinYOffset = -0.3 -- minimal wheel rotation value (adjust this to your preference)
  8. Config.MaxYOffset = 0.3 -- maximal wheel rotation value (adjust this to your preference)
  9.  
  10. Config.MinZOffset = 0.15 -- minimal car suspension height (adjust this to your preference)
  11. Config.MaxZOffset = -0.2 -- maximal car suspension height (adjust this to your preference)
  12.  
  13. Config.RenderDistance = 100.0 -- radius in which stance properties are visible to player
  14.  
  15. Config.SyncingTime = 5 -- if wheels flicker, lower this (values from 0-50) (in ms)
  16.  
  17. Config.ServerSyncTime = 2000 -- how often does server check for stanced vehicles (in ms)
  18.  
  19.  
  20. Config.PreviewUpdateTime = 2000 -- how often does the preview update for other players, not you (in ms)
  21.  
  22. Config.HasToBeRepaired = false -- If true, the vehicle has to be repaired before it can be stanced
  23.  
  24. Config.RemoveItemOnSave = false -- If true, the item will be removed from the players inventory when the settings are saved
  25.  
  26.  
  27. Config.UseAllowList = false -- If true, only vehicles in the allowlist can be stanced
  28.  
  29. Config.VehicleAllowlist = {
  30. -- [`adder`] = true,
  31. }
  32.  
  33. Config.VehicleBlacklist = {
  34. -- [`adder`] = true,
  35. }
  36.  
  37. Config.OnlyOwnedVehicles = true -- If true, only owned vehicles can be stanced
  38.  
  39. 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)
  40.  
  41. Config.UseJobRestrictions = false -- If true, only certain jobs can stance vehicles
  42.  
  43. Config.JobRoles = {
  44. -- {name = "mechanic" , minJobGrade = 0 },
  45. -- {name = "tuner" , minJobGrade = 0 },
  46. -- {name = "lscustoms" , minJobGrade = 0 }
  47. }
  48.  
  49.  
  50. Config.UseLocationRestrictions = false -- If true, you can only stance car in certain locations
  51.  
  52. Config.Locations = {
  53. -- {coords=vector3(117.42, -1002.96, 28.77), radius=20.0},
  54. }
  55.  
  56.  
  57. Config.BlacklistedClasses = {
  58. [8] = true, -- Motorcycles
  59. [13] = true, -- Cycles
  60. [14] = true, -- Boats
  61. [15] = true, -- Helicopters
  62. [16] = true, -- Planes
  63. [17] = true, -- Service
  64. [29] = true, -- Military
  65. [20] = true, -- Commercial
  66. [21] = true, -- Trains
  67. [22] = true, -- Open Wheel
  68. }
  69.  
  70.  
  71. local QBCore = exports[Config.CoreResource]:GetCoreObject()
  72.  
  73. function Notify(text) -- if you use any custom notification system, change this
  74. QBCore.Functions.Notify(text)
  75. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement