Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Config = {}
- -- ============================
- -- GENERAL SETTINGS
- -- ============================
- Config.Debug = false -- Enable debug prints
- -- Language Options:
- -- 'en' = English 'de' = German 'fr' = French
- -- 'es' = Spanish 'pt' = Portuguese 'ar' = Arabic
- -- 'nl' = Dutch 'tr' = Turkish 'pl' = Polish
- -- 'th' = Thai
- Config.Locale = 'en'
- -- ============================
- -- PERMISSION SYSTEM
- -- ============================
- Config.UsePermissions = false
- Config.PermissionType = "auto" -- "auto", "ace", "framework", "whitelist"
- -- Whitelist (only used if PermissionType = "whitelist")
- Config.Whitelist = {
- "license:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
- "steam:xxxxxxxxxxxxxxxxx",
- "discord:xxxxxxxxxxxxxxxxxx"
- }
- -- ============================
- -- PROP MODELS
- -- ============================
- -- NOTE: Custom props require BOTH .ydr AND .ytyp files to work!
- -- If custom props fail to load, fallbacks will be used automatically.
- Config.Props = {
- Open = "parachute_open", -- Custom model (requires .ytyp)
- Closed = "parachute_closed" -- Custom model (requires .ytyp)
- }
- -- ============================
- -- DEFAULT ATTACHMENT POSITIONS
- -- ============================
- -- These are used when no vehicle-specific config exists
- Config.DefaultOffset = {
- closed = {x = 0.0, y = -2.0, z = 0.5},
- open = {x = 0.0, y = -2.5, z = 0.8}
- }
- Config.DefaultRotation = {
- closed = {x = 0.0, y = 0.0, z = 0.0},
- open = {x = 0.0, y = 0.0, z = 0.0}
- }
- -- Bone to attach props to (vehicle bone)
- Config.AttachBone = "chassis" -- "chassis", "boot", "platelight"
- -- ============================
- -- TOGGLE SETTINGS
- -- ============================
- Config.ToggleKey = 311 -- K key / Dpad Down (control ID)
- Config.ToggleCooldown = 2000 -- Cooldown between toggles in milliseconds
- Config.AllowToggleWhileMoving = true -- Allow toggle while vehicle is moving
- Config.MaxSpeedForToggle = 999.0 -- Max speed (MPH) to allow toggle (999 = no limit)
- -- ============================
- -- PACKING REQUIREMENTS (RP Mode)
- -- ============================
- -- When enabled, players cannot close/pack deployed chutes via keybind, /chute, or menu toggle.
- -- They must use /chutepack, 3rd eye target, or "Pack Parachute" menu option (requires animation).
- Config.RequireManualPacking = true -- Set to true for serious RP servers or creating realism
- -- ============================
- -- DRAG CHUTE PHYSICS
- -- ============================
- Config.SlowChuteEnabled = true -- Enable or disable gradual chute drag slowdown (false = visual only)
- Config.ChuteDragMultiplier = 0.95 -- Velocity retained each tick (lower = stronger drag, higher = softer) [change 0.01 at a time]
- -- ============================
- -- SOUND SETTINGS
- -- ============================
- Config.UseSound = true
- Config.SoundVolume = 0.7 -- Volume (0.0 - 1.0)
- Config.SoundFile = "chute_deploy.ogg" -- Sound file in sounds/ folder
- -- ============================
- -- ANIMATION SETTINGS
- -- ============================
- Config.UseAnimations = true
- Config.PackDuration = 5000 -- How long packing animation takes (ms)
- Config.MaxApproachTime = 10000 -- Max time to walk to vehicle (ms)
- Config.WalkSpeed = 1.0 -- Walking speed during pack animation
- Config.UseTargetForPacking = true -- Enable ox_target/qb-target integration
- -- Animation dictionary and name
- Config.PackAnimDict = "anim@amb@clubhouse@tutorial@bkr_tut_ig3@"
- Config.PackAnimName = "machinic_loop_mechandplayer"
- -- ============================
- -- POSITIONING MODE SETTINGS
- -- ============================
- Config.CoarseStep = 0.05 -- Normal adjustment step size
- Config.FineStep = 0.01 -- Fine adjustment step (when holding SHIFT)
- Config.RotationStep = 5.0 -- Rotation adjustment in degrees
- -- Visual aids during positioning
- Config.ShowGrid = true
- Config.ShowAxisIndicators = true
- Config.ShowInstructions = true
- Config.PreviewTransparency = 150 -- Alpha for non-active preview (0-255)
- -- Positioning controls (control IDs)
- Config.PositioningControls = {
- -- Position
- MOVE_LEFT = 174, -- Arrow Left
- MOVE_RIGHT = 175, -- Arrow Right
- MOVE_FORWARD = 172, -- Arrow Up
- MOVE_BACKWARD = 173, -- Arrow Down
- MOVE_UP = 10, -- Page Up
- MOVE_DOWN = 11, -- Page Down
- -- Rotation
- PITCH_UP = 111, -- Numpad 8
- PITCH_DOWN = 110, -- Numpad 5
- YAW_LEFT = 108, -- Numpad 4
- YAW_RIGHT = 107, -- Numpad 6
- ROLL_LEFT = 117, -- Numpad 7
- ROLL_RIGHT = 118, -- Numpad 9
- -- Mode controls
- TOGGLE_STATE = 38, -- E - Toggle open/closed preview
- FINE_MODE = 21, -- SHIFT - Hold for fine adjustments
- SAVE = 191, -- ENTER - Save position
- CANCEL = 194 -- BACKSPACE - Cancel
- }
- -- ============================
- -- STORAGE SETTINGS
- -- ============================
- Config.StorageBackend = "auto" -- "auto", "json", "mysql"
- Config.AutoSave = true -- Auto-save when positioning is finalized
- Config.EnablePresets = true -- Enable preset system
- Config.JSONFile = "server/storage/chute_configs.json"
- -- MySQL table name (if using MySQL backend)
- Config.MySQLTable = "chute_configs"
- -- ============================
- -- UI SETTINGS
- -- ============================
- Config.MenuKey = 167 -- F6 - Open chute menu
- Config.PreferredUI = "auto" -- "auto", "ox_lib", "qb-menu", "esx_menu_default", "NativeUI", "custom_nui"
- -- Menu position (for NativeUI/Custom)
- Config.MenuAlignment = "right" -- "left", "right"
- Config.MenuX = 0.05
- Config.MenuY = 0.2
- -- ============================
- -- PERFORMANCE SETTINGS
- -- ============================
- Config.CleanupOnResourceStop = true -- Remove all props on resource stop
- Config.StreamingDistance = 150.0 -- Distance for prop streaming
- Config.VehicleCheckInterval = 500 -- How often to check vehicle enter/exit
- -- ============================
- -- SYNC SETTINGS (Multiplayer visibility)
- -- ============================
- Config.SyncChutes = true -- Sync chutes across all players (everyone sees all chutes)
- Config.UseNetworkedProps = true -- Create networked props for sync (required for SyncChutes)
- Config.SyncInterval = 1000 -- How often to sync chute states (ms)
- -- ============================
- -- NOTIFICATION SETTINGS
- -- ============================
- Config.NotificationDuration = 3000 -- Duration of notifications (ms)
- Config.FadeDuration = 1000 -- Fade out duration (ms)
- -- Notification system to use
- -- "auto" = auto-detect (ox_lib > mythic_notify > okokNotify > framework > standalone)
- -- "ox_lib" = force ox_lib notifications
- -- "mythic_notify" = force mythic_notify
- -- "okokNotify" = force okokNotify
- -- "esx" = force ESX notifications
- -- "qbcore" = force QBCore notifications
- -- "standalone" = force standalone (GTA native text, no dependencies)
- Config.NotificationSystem = "auto"
- -- Notification types (used for framework notifications)
- Config.NotificationTypes = {
- success = "success",
- error = "error",
- info = "info",
- warning = "warning"
- }
- -- ============================
- -- KEYBIND LABELS
- -- ============================
- Config.KeybindLabels = {
- ToggleChute = "Toggle Parachute",
- OpenMenu = "Open Chute Menu",
- PackChute = "Pack Parachute"
- }
- -- ============================
- -- CHAT COMMANDS
- -- ============================
- Config.EnableChatCommands = true -- Enables /chute and /chutepack commands
- -- ============================
- -- DRAG STRIP INTEGRATION
- -- ============================
- -- Auto-deploy chutes when crossing finish line at drag strips
- Config.DragStripIntegration = {
- Enabled = true, -- Enable/disable drag strip auto-deploy feature
- AutoDeployOnFinish = true, -- Auto-deploy chute when crossing finish line
- OnlyIfChuteAttached = true, -- Only auto-deploy if vehicle already has a chute attached
- MinSpeedToDeploy = 60.0, -- Minimum speed (MPH) to trigger auto-deploy
- DeployCooldown = 5000, -- Cooldown between auto-deploys (ms) to prevent spam
- }
- -- Finish line zones (add your own tracks here)
- -- Format: { center = vector3(x, y, z), length = L, width = W, heading = H }
- Config.FinishLineZones = {
- -- Sandy Shores Drag Strip (ct_dragstrip)
- {
- name = "Sandy Shores",
- center = vector3(1310.8258, 3145.4614, 41.1977),
- length = 10.0,
- width = 25.0,
- heading = 108.5
- },
- -- Fort Zancudo Drag Strip (ct_dragstrip)
- {
- name = "Fort Zancudo",
- center = vector3(-2297.81, 3026.04, 32.81),
- length = 20.0, -- Made larger for testing
- width = 50.0, -- Made larger for testing
- heading = 60.0
- },
- -- Add more tracks below:
- -- {
- -- name = "Custom Track",
- -- center = vector3(0.0, 0.0, 0.0),
- -- length = 5.0,
- -- width = 20.0,
- -- heading = 0.0
- -- },
- }
- -- ============================
- -- COMPATIBILITY
- -- ============================
- Config.CompatibilityMode = false -- Enable extra compatibility checks
- Config.DisableVehicleRewards = true -- Disable vehicle rewards that might conflict
- -- Blacklisted vehicle classes (won't allow parachutes)
- Config.BlacklistedClasses = {
- 8, -- Motorcycles
- 13, -- Cycles
- 14, -- Boats
- 15, -- Helicopters
- 16, -- Planes
- }
- -- ============================
- -- DEVELOPMENT/DEBUG
- -- ============================
- Config.DevMode = false -- Enable developer features
- Config.ShowPropIDs = false -- Show prop entity IDs in notifications
- Config.LogStorage = false -- Log storage operations
- Config.LogFramework = false -- Log framework detection
- return Config
Advertisement