Vehicle Objects

A script by DarkClef

No reviews yet.
Vehicle Objects main image

Full Description

:fire: The most advanced vehicle object system for FiveM!


Preview : Youtube
Buy : Tebex

Why choose DC Vehicle Object?

:white_check_mark: Intelligent Physics System :

  • Vehicle flip detection

  • Speed-based collision detection

  • Damage threshold monitoring

  • Configurable impact conditions

:white_check_mark: Professional Features :

  • Modern responsive UI

  • Multi-framework or standalone support

  • Extensive configuration options

  • Debug system for developers

  • Performance optimized code

:dart: Perfect for servers that want:

  • Realistic object physics

  • Zero synchronization issues

  • Professional code quality

  • Easy customization

:package: Installation : Drag & drop, configure, restart!

Config = {}

-- General Settings
Config.Locale = 'en' -- 'tr', 'en'
Config.Debug = false -- Debug 

-- Framework
Config.Framework = 'qb' -- 'qb', 'esx'

-- Notification Settings
Config.NotificationType = 'qb' -- 'qb', 'esx', 'okok', false (to disable)

-- Command Settings
Config.Command = 'vehobj' -- Main command

Config.RequiredLicenses = false -- Set to true to enable license checking
Config.AuthorizedLicenses = {
'license:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
    -- Add player licenses here (only if RequiredLicenses is true)
}

Config.VehicleSearchDistance = 10.0 -- Vehicle search distance

Config.MaxObjectsPerVehicle = 5 -- Maximum objects per vehicle
Config.AttachmentOffset = vector3(0.0, 0.0, 0.0) -- Default offset

--  Phyusics and Detach
Config.ObjectPhysics = {
    enableCollision = true,     -- Clash of objects
    enablePhysics = true,       -- Object physical interaction
    enableDynamic = false,      -- Object dynamic physics properties (initially closed)
    detachOnImpact = true,      -- Object separation in case of impact
    
    detachConditions = {
        minSpeed = 15.0,            -- Min speed(km/h)
        speedDifferenceThreshold = 20.0,  -- Speed change threshold (km/h)
        damageThreshold = 50.0,     -- Vehicle damage threshold
        highSpeedThreshold = 40.0,  -- High speed threshold (km/h)
        highSpeedDifference = 10.0, -- Yüksek hızda hız farkı eşiği
        rollThreshold = 90.0,       -- Tipping angle (degrees)
        pitchThreshold = 60.0,      -- Slope angle (degrees)
        impactCooldown = 10         -- Multiply cooldown (100ms * value)
    },
    
    detachForces = {
        vehicleFlipped = { multiplier = 0.03, maxForce = 5.0 },  
        highImpact = { multiplier = 0.08, maxForce = 15.0 },     
        vehicleDamage = { multiplier = 0.06, maxForce = 12.0 },  
        speedImpact = { multiplier = 0.05, maxForce = 10.0 }    
    }
}

-- Placement Settings
Config.PlacementSettings = {
    enabled = true,
    showInstructions = true,
    rotationSpeed = 0.2, -- degrees per frame
    heightStep = 0.05, -- height adjustment step
    maxHeight = 3.0,
    minHeight = -1.0
}

-- Predefined Objects
Config.PredefinedObjects = {
    {
        label = 'Traffic Cone',
        model = 'prop_roadcone02a',
        category = 'Traffic'
    },
    {
        label = 'Chair',
        model = 'prop_chair_02',
        category = 'Furniture'
    },
    {
        label = 'Table',
        model = 'prop_table_01',
        category = 'Furniture'
    },
    {
        label = 'Barrier',
        model = 'prop_barrier_work05',
        category = 'Traffic'
    },
    {
        label = 'Trash Bin',
        model = 'prop_bin_05a',
        category = 'Environment'
    },
    {
        label = 'Work Light',
        model = 'prop_worklight_03b',
        category = 'Lighting'
    }
}

-- Categories
Config.Categories = {
    'Traffic',
    'Furniture',
    'Environment',
    'Lighting',
    'Other'
}

-- UI Settings
Config.UI = {
    maxVehicleDisplay = 10, -- Maximum vehicles to display
    refreshInterval = 5000 -- UI refresh interval (ms)
}

|-------------------------------------|----------------------------|
| Code is accessible | No |
| Subscription-based | No |
| Lines (approximately) | 3550 |
| Requirements | No |
| Support | Yes |

Config Merger
Have you tried Config Merger? Merge your configs easily