Guest User

dragchutesv3_config

a guest
Feb 13th, 2026
132
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.55 KB | None | 0 0
  1. Config = {}
  2.  
  3. -- ============================
  4. -- GENERAL SETTINGS
  5. -- ============================
  6. Config.Debug = false -- Enable debug prints
  7. -- Language Options:
  8. -- 'en' = English 'de' = German 'fr' = French
  9. -- 'es' = Spanish 'pt' = Portuguese 'ar' = Arabic
  10. -- 'nl' = Dutch 'tr' = Turkish 'pl' = Polish
  11. -- 'th' = Thai
  12. Config.Locale = 'en'
  13.  
  14. -- ============================
  15. -- PERMISSION SYSTEM
  16. -- ============================
  17. Config.UsePermissions = false
  18. Config.PermissionType = "auto" -- "auto", "ace", "framework", "whitelist"
  19.  
  20. -- Whitelist (only used if PermissionType = "whitelist")
  21. Config.Whitelist = {
  22. "license:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  23. "steam:xxxxxxxxxxxxxxxxx",
  24. "discord:xxxxxxxxxxxxxxxxxx"
  25. }
  26.  
  27. -- ============================
  28. -- PROP MODELS
  29. -- ============================
  30. -- NOTE: Custom props require BOTH .ydr AND .ytyp files to work!
  31. -- If custom props fail to load, fallbacks will be used automatically.
  32. Config.Props = {
  33. Open = "parachute_open", -- Custom model (requires .ytyp)
  34. Closed = "parachute_closed" -- Custom model (requires .ytyp)
  35. }
  36.  
  37. -- ============================
  38. -- DEFAULT ATTACHMENT POSITIONS
  39. -- ============================
  40. -- These are used when no vehicle-specific config exists
  41. Config.DefaultOffset = {
  42. closed = {x = 0.0, y = -2.0, z = 0.5},
  43. open = {x = 0.0, y = -2.5, z = 0.8}
  44. }
  45.  
  46. Config.DefaultRotation = {
  47. closed = {x = 0.0, y = 0.0, z = 0.0},
  48. open = {x = 0.0, y = 0.0, z = 0.0}
  49. }
  50.  
  51. -- Bone to attach props to (vehicle bone)
  52. Config.AttachBone = "chassis" -- "chassis", "boot", "platelight"
  53.  
  54. -- ============================
  55. -- TOGGLE SETTINGS
  56. -- ============================
  57. Config.ToggleKey = 311 -- K key / Dpad Down (control ID)
  58. Config.ToggleCooldown = 2000 -- Cooldown between toggles in milliseconds
  59. Config.AllowToggleWhileMoving = true -- Allow toggle while vehicle is moving
  60. Config.MaxSpeedForToggle = 999.0 -- Max speed (MPH) to allow toggle (999 = no limit)
  61.  
  62. -- ============================
  63. -- PACKING REQUIREMENTS (RP Mode)
  64. -- ============================
  65. -- When enabled, players cannot close/pack deployed chutes via keybind, /chute, or menu toggle.
  66. -- They must use /chutepack, 3rd eye target, or "Pack Parachute" menu option (requires animation).
  67. Config.RequireManualPacking = true -- Set to true for serious RP servers or creating realism
  68.  
  69. -- ============================
  70. -- DRAG CHUTE PHYSICS
  71. -- ============================
  72. Config.SlowChuteEnabled = true -- Enable or disable gradual chute drag slowdown (false = visual only)
  73. Config.ChuteDragMultiplier = 0.95 -- Velocity retained each tick (lower = stronger drag, higher = softer) [change 0.01 at a time]
  74.  
  75. -- ============================
  76. -- SOUND SETTINGS
  77. -- ============================
  78. Config.UseSound = true
  79. Config.SoundVolume = 0.7 -- Volume (0.0 - 1.0)
  80. Config.SoundFile = "chute_deploy.ogg" -- Sound file in sounds/ folder
  81.  
  82. -- ============================
  83. -- ANIMATION SETTINGS
  84. -- ============================
  85. Config.UseAnimations = true
  86. Config.PackDuration = 5000 -- How long packing animation takes (ms)
  87. Config.MaxApproachTime = 10000 -- Max time to walk to vehicle (ms)
  88. Config.WalkSpeed = 1.0 -- Walking speed during pack animation
  89. Config.UseTargetForPacking = true -- Enable ox_target/qb-target integration
  90.  
  91. -- Animation dictionary and name
  92. Config.PackAnimDict = "anim@amb@clubhouse@tutorial@bkr_tut_ig3@"
  93. Config.PackAnimName = "machinic_loop_mechandplayer"
  94.  
  95. -- ============================
  96. -- POSITIONING MODE SETTINGS
  97. -- ============================
  98. Config.CoarseStep = 0.05 -- Normal adjustment step size
  99. Config.FineStep = 0.01 -- Fine adjustment step (when holding SHIFT)
  100. Config.RotationStep = 5.0 -- Rotation adjustment in degrees
  101.  
  102. -- Visual aids during positioning
  103. Config.ShowGrid = true
  104. Config.ShowAxisIndicators = true
  105. Config.ShowInstructions = true
  106. Config.PreviewTransparency = 150 -- Alpha for non-active preview (0-255)
  107.  
  108. -- Positioning controls (control IDs)
  109. Config.PositioningControls = {
  110. -- Position
  111. MOVE_LEFT = 174, -- Arrow Left
  112. MOVE_RIGHT = 175, -- Arrow Right
  113. MOVE_FORWARD = 172, -- Arrow Up
  114. MOVE_BACKWARD = 173, -- Arrow Down
  115. MOVE_UP = 10, -- Page Up
  116. MOVE_DOWN = 11, -- Page Down
  117.  
  118. -- Rotation
  119. PITCH_UP = 111, -- Numpad 8
  120. PITCH_DOWN = 110, -- Numpad 5
  121. YAW_LEFT = 108, -- Numpad 4
  122. YAW_RIGHT = 107, -- Numpad 6
  123. ROLL_LEFT = 117, -- Numpad 7
  124. ROLL_RIGHT = 118, -- Numpad 9
  125.  
  126. -- Mode controls
  127. TOGGLE_STATE = 38, -- E - Toggle open/closed preview
  128. FINE_MODE = 21, -- SHIFT - Hold for fine adjustments
  129. SAVE = 191, -- ENTER - Save position
  130. CANCEL = 194 -- BACKSPACE - Cancel
  131. }
  132.  
  133. -- ============================
  134. -- STORAGE SETTINGS
  135. -- ============================
  136. Config.StorageBackend = "auto" -- "auto", "json", "mysql"
  137. Config.AutoSave = true -- Auto-save when positioning is finalized
  138. Config.EnablePresets = true -- Enable preset system
  139. Config.JSONFile = "server/storage/chute_configs.json"
  140.  
  141. -- MySQL table name (if using MySQL backend)
  142. Config.MySQLTable = "chute_configs"
  143.  
  144. -- ============================
  145. -- UI SETTINGS
  146. -- ============================
  147. Config.MenuKey = 167 -- F6 - Open chute menu
  148. Config.PreferredUI = "auto" -- "auto", "ox_lib", "qb-menu", "esx_menu_default", "NativeUI", "custom_nui"
  149.  
  150. -- Menu position (for NativeUI/Custom)
  151. Config.MenuAlignment = "right" -- "left", "right"
  152. Config.MenuX = 0.05
  153. Config.MenuY = 0.2
  154.  
  155. -- ============================
  156. -- PERFORMANCE SETTINGS
  157. -- ============================
  158. Config.CleanupOnResourceStop = true -- Remove all props on resource stop
  159. Config.StreamingDistance = 150.0 -- Distance for prop streaming
  160. Config.VehicleCheckInterval = 500 -- How often to check vehicle enter/exit
  161.  
  162. -- ============================
  163. -- SYNC SETTINGS (Multiplayer visibility)
  164. -- ============================
  165. Config.SyncChutes = true -- Sync chutes across all players (everyone sees all chutes)
  166. Config.UseNetworkedProps = true -- Create networked props for sync (required for SyncChutes)
  167. Config.SyncInterval = 1000 -- How often to sync chute states (ms)
  168.  
  169. -- ============================
  170. -- NOTIFICATION SETTINGS
  171. -- ============================
  172. Config.NotificationDuration = 3000 -- Duration of notifications (ms)
  173. Config.FadeDuration = 1000 -- Fade out duration (ms)
  174.  
  175. -- Notification system to use
  176. -- "auto" = auto-detect (ox_lib > mythic_notify > okokNotify > framework > standalone)
  177. -- "ox_lib" = force ox_lib notifications
  178. -- "mythic_notify" = force mythic_notify
  179. -- "okokNotify" = force okokNotify
  180. -- "esx" = force ESX notifications
  181. -- "qbcore" = force QBCore notifications
  182. -- "standalone" = force standalone (GTA native text, no dependencies)
  183. Config.NotificationSystem = "auto"
  184.  
  185. -- Notification types (used for framework notifications)
  186. Config.NotificationTypes = {
  187. success = "success",
  188. error = "error",
  189. info = "info",
  190. warning = "warning"
  191. }
  192.  
  193. -- ============================
  194. -- KEYBIND LABELS
  195. -- ============================
  196. Config.KeybindLabels = {
  197. ToggleChute = "Toggle Parachute",
  198. OpenMenu = "Open Chute Menu",
  199. PackChute = "Pack Parachute"
  200. }
  201.  
  202. -- ============================
  203. -- CHAT COMMANDS
  204. -- ============================
  205. Config.EnableChatCommands = true -- Enables /chute and /chutepack commands
  206.  
  207. -- ============================
  208. -- DRAG STRIP INTEGRATION
  209. -- ============================
  210. -- Auto-deploy chutes when crossing finish line at drag strips
  211. Config.DragStripIntegration = {
  212. Enabled = true, -- Enable/disable drag strip auto-deploy feature
  213. AutoDeployOnFinish = true, -- Auto-deploy chute when crossing finish line
  214. OnlyIfChuteAttached = true, -- Only auto-deploy if vehicle already has a chute attached
  215. MinSpeedToDeploy = 60.0, -- Minimum speed (MPH) to trigger auto-deploy
  216. DeployCooldown = 5000, -- Cooldown between auto-deploys (ms) to prevent spam
  217. }
  218.  
  219. -- Finish line zones (add your own tracks here)
  220. -- Format: { center = vector3(x, y, z), length = L, width = W, heading = H }
  221. Config.FinishLineZones = {
  222. -- Sandy Shores Drag Strip (ct_dragstrip)
  223. {
  224. name = "Sandy Shores",
  225. center = vector3(1310.8258, 3145.4614, 41.1977),
  226. length = 10.0,
  227. width = 25.0,
  228. heading = 108.5
  229. },
  230. -- Fort Zancudo Drag Strip (ct_dragstrip)
  231. {
  232. name = "Fort Zancudo",
  233. center = vector3(-2297.81, 3026.04, 32.81),
  234. length = 20.0, -- Made larger for testing
  235. width = 50.0, -- Made larger for testing
  236. heading = 60.0
  237. },
  238. -- Add more tracks below:
  239. -- {
  240. -- name = "Custom Track",
  241. -- center = vector3(0.0, 0.0, 0.0),
  242. -- length = 5.0,
  243. -- width = 20.0,
  244. -- heading = 0.0
  245. -- },
  246. }
  247.  
  248. -- ============================
  249. -- COMPATIBILITY
  250. -- ============================
  251. Config.CompatibilityMode = false -- Enable extra compatibility checks
  252. Config.DisableVehicleRewards = true -- Disable vehicle rewards that might conflict
  253.  
  254. -- Blacklisted vehicle classes (won't allow parachutes)
  255. Config.BlacklistedClasses = {
  256. 8, -- Motorcycles
  257. 13, -- Cycles
  258. 14, -- Boats
  259. 15, -- Helicopters
  260. 16, -- Planes
  261. }
  262.  
  263. -- ============================
  264. -- DEVELOPMENT/DEBUG
  265. -- ============================
  266. Config.DevMode = false -- Enable developer features
  267. Config.ShowPropIDs = false -- Show prop entity IDs in notifications
  268. Config.LogStorage = false -- Log storage operations
  269. Config.LogFramework = false -- Log framework detection
  270.  
  271. return Config
  272.  
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment