London Studios Documentation
Our StoreSupport PanelYouTube Channel
  • General
    • Documentation
    • Resource Support
    • Downloading Resources
    • Installing Resources
    • Resource Transfers
    • Common Errors
    • Translating Resources
    • Inventory Icons
    • Resource Ideas
    • Integration Requests
  • Vehicles
    • American Rearmount Ladder
      • Setting up
      • Anticheat Issues
    • Advanced Recovery Truck
      • Setting up
      • Anticheat Issues
    • SWAT Vehicle
      • Setting up
      • Anticheat Issues
    • Police Water Cannon
      • Setting up
      • Anticheat Issues
    • British Ladder Truck
      • Setting up
      • Anticheat Issues
    • Tiller Ladder Truck
      • Setting up
      • Anticheat Issues
    • Scissor Lift
      • Setting up
      • Anticheat Issues
    • Car Transporter
      • Setting up
      • Anticheat Issues
    • Water Carrier & Command Unit
      • Setting up
      • Anticheat Issues
    • Water Spray Unit
      • Setting up
      • Anticheat Issues
    • Snow Loader Pack
      • Setting up
      • Anticheat Issues
  • Resources
    • Bike Hire
      • Using the resource
      • Configuring the resource
      • Configuring locations
    • Bomb Disposal Robot (EOD)
      • EOD - How to use
      • EOD - Permissions Check
      • OX_Inventory Integration
      • Other Integrations
    • Car Sale Sign
      • Installation Video
      • Using the resource
      • Configuring the resource
      • Configuring permissions
      • Item Support
    • Congestion Charge
      • Configuring the resource
      • Modifying Zones & Adding Cameras
    • Custom Vinewood Sign
      • Installation Video
      • Sign Setup
    • Decontamination Tent
      • Using the resource
      • Configuring the resource
      • OX_Inventory Integration
      • Other Integrations
    • Directional Spikes
      • Using the resource
      • Configuring the resource
    • Emergency Call Points
      • Using the resource
      • Configuring the resource
    • Fire Supply Line [v2]
      • Using the resource
      • Configuring Fire Supply Line
    • Fire Tools [v2]
      • Using the resource
      • Configuration
      • Permissions, Notifications and Items
      • Item Support
    • Helicopter Rescue
      • Using the resource
      • Configuring the resource
      • Configuring the permissions
      • Configuring locations
    • Mobile Spike
      • Setting up vehicles
      • Misc Configuration Values
      • Permission Checks
      • OX_Inventory Integration
      • Other Integrations
    • Police Grappler
      • Setting up vehicles
      • Misc Configuration Values
      • Permissions, Notifications & Items
      • Item Support
    • Police Shields
      • Using the resource
      • Permissions, Notifications & Items
      • Item Support
    • Rope Rescue Tripod & Basket
      • Using the resource
      • Configuring the resource
      • OX_Inventory Integration
      • Other Integrations
    • Rescue Cushion
      • Using the resource
      • Permissions, Notifications & Items
      • Other Integrations
    • Smart Speed Signs
      • Configuring the resource
      • Adding new locations
    • Smart Airbags
      • Using this resource
      • Permissions & Notifications
    • Smart Bollards
      • Installation Video
      • Configuring the resource
      • Setting up a new set
    • Smart Clamp
      • Permissions, Notifications and Items
      • Item Support
      • Exports and Events
    • Smart Defib
      • Using the resource
      • Defib locations
      • Framework support
      • Setting up blips
      • Chance of success
      • Sound settings
      • Keybind configuration
      • Automatic reset
      • Custom Death Scripts
      • OX_Inventory Integration
      • Other Integrations
    • Smart Drone
      • Using the resource
      • Permission Checks, Notifications & Items
      • Keybinds
      • Item Support
      • Other Integrations
    • Smart Fires
      • Installation Video
      • Putting out fires
      • Fire Alerts
      • Remove Fires Automatically
      • Custom Notifications
      • Automatic Fires
        • Enabling automatic fires
        • Job / Permission Check
        • Adding locations
        • Automatic Fire Chances
        • Other automatic fire settings
      • Commands
      • Command permission checks
      • Editing fire types
      • Editing smoke types
      • Misc configuration values
      • Setting up weapons
      • Area of patrol settings
      • Clock on system
      • Lighter Item & Command
      • Server exports and events
      • Discord logging
      • Society Payments
    • Smart Hose [v2]
      • Using the resource
      • Configuring Smart Hose
    • Smart Matrix
      • Install & Configuration Video
      • OX_Inventory Integration
      • Other Integrations
    • Smart Motorways
      • Using the resource
      • Configuring the resource
    • Smart Signs
      • Configuring the resource
      • Configuring the permissions
    • Smart Speed Cameras
      • Configuring the resource
      • Adding new cameras
    • Smart Taser
      • Using the resource
      • Configuration
      • OX_Inventory Integration
      • Other Integrations
    • Smart Vehicle
      • Compatible Vehicles
      • Free Developer Copy
      • Permission Checks
      • Using a Smart Vehicle
      • Informations for Developers
      • Vehicle Control Menus
    • Police Tracker
      • Setting up vehicles
      • Resource Configuration & Usage
      • Item Support
    • Throw Bag
      • Resource Usage
      • OX_Inventory Integration
      • Other Integrations
    • Vehicle Rescue
      • Using the Resource
      • Permissions, Notifications & Items
      • Copy of Item Support
    • Water Monitor
      • Using the resource
      • Copy of Permissions, Notifications & Items
      • Copy of Item Support
    • Weapon Lanyard
      • Setting up weapons
      • Using the resource
      • Setting up clothing / EUP
Powered by GitBook
On this page
  • Configuration:
  • Usage
  • Commands
  • /airbag command
  • /removeairbags command
  • Warning Message
  • Stuck in vehicle

Was this helpful?

  1. Resources
  2. Smart Airbags

Using this resource

Configuration:

Here's some of the main configuration options:

main = {
    -- Set damageLevel to 100.0 to activate airbags when the vehicle is no longer drivable
    -- This is recommended to stay between 700 - 999.0
    -- Vehicles start at 1000.0 damage level - then gradually reduce
    damageLevel = 600.0,
    -- This is the amount of seconds before the airbags automatically disappear - the /airbag command one does not disappear
    -- If you set this to -1, all airbags will stay forever, even when the vehicle is deleted (so I recommend making these expire)
    secondsToExpire = 50,
    modelName = `prop_car_airbag`,
    exemptVehicleClasses = {8, 16, 15, 13},
    exemptVehicleModels = {`police`, `police2`},
    airbagSoundVolume = 0.1,
}

To change the level of damage to detect, for an automatic deployment increase or decrease following config setting.

main = {
    -- Set damageLevel to 100.0 to activate airbags when the vehicle is no longer drivable
    -- This is recommended to stay between 700 - 999.0
    -- Vehicles start at 1000.0 damage level - then gradually reduce
    damageLevel = 600.0, -- Increase or decrease this amount

To change the number of seconds after airbags are automatically deployed before deleting and to change the exempted vehicles, change following config settings

 -- This is the amount of seconds before the airbags automatically disappear - the /airbag command one does not disappear
    -- If you set this to -1, all airbags will stay forever, even when the vehicle is deleted (so I recommend making these expire)
    secondsToExpire = 50, -- increase or decrease this number
    modelName = `prop_car_airbag`,
    exemptVehicleClasses = {8, 16, 15, 13},
    exemptVehicleModels = {`police`, `police2`}, -- add your car models here 
    removalTimer = {
        enabled = true, -- This enables / disables the automatic removal of airbags
        timer = 10, -- This is the number of seconds until airbags are removed automatically
    },
}

Usage

The airbags are automatically deployed on a vehicle, they can also be manually activated using the /airbag command mentioned below.

All airbags activated can be removed automatically on a timer, which is activated above.

If a vehicle is repaired after the airbags are activated, this will automatically remove the airbags.

Commands

/airbag command

airbagsCommand = { -- This allows you to enable / disable the /removeairbags command.
        enabled = true,
        name = "airbag",
    },

This command allows you to deploy an airbag on the current vehicle you are driving. You can setup permissions for this.

/removeairbags command

removeCommand = { -- This allows you to enable / disable the /removeairbags command.
        enabled = true,
        name = "removeairbags",
    },

This command allows you to remove airbags on the current vehicle you are driving. You can setup permissions for this.

Warning Message

This allows you to configure whether an on-screen warning message will appear after airbag activations.

warningMessage = {
        enabled = true,  -- This enables / disables the airbag warning message
        flash = true, -- This determines whether to flash the message
        timer = 30, -- This is the number of seconds that the warning message is displayed for
    },

Stuck in vehicle

stuckInVehicle = false, -- If true, the player will be stuck inside the vehicle, intended to be used with firetools. Using spreaders will unlock the vehicle
stuckInVehicleChance = 40, -- This is the percentage chance that the player will be stuck inside the vehicle, set this to 100 if you want this to happen every time

You can set whether players have a chance to become stuck in a vehicle after airbag activation. By default, this is turned off and the chance is set to 40%.

This integrates well with our Fire Tools resource, requiring the use of spreaders/cutters to allow them to exit the vehicle.

PreviousSmart AirbagsNextPermissions & Notifications

Last updated 3 months ago

Was this helpful?