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
  • Discord Logging
  • Animation & Sound

Was this helpful?

  1. Resources
  2. Mobile Spike

Misc Configuration Values

PreviousSetting up vehiclesNextPermission Checks

Last updated 2 years ago

Was this helpful?

We've got some misc configuration values which can be changed if needed. To take a look, open the config.lua file and navigate to the main = { section.

main = {
    frameRotation = 115,
    percentageChance = 60, -- % This is the percentage chance of the spike being effective on another vehicle. 100% means it will work every time when deployed correctly. Minimum of 1%
    radiusToAttachToVehicle = 2.0, -- Set this higher if issues with bursting tyres
}

frameRotation - This determines the rotation of the Mobile Spike when it is deployed and ready to be used on a vehicle. If you're finding that it is too highly rotated and not able to properly hook under a car onto the tyres, you may wish to decrease/increase this number to change this. This will require trial and error to find out what works best for your server.

percentageChance - This is the percentage chance of the spike being effective and bursting the tyre of a target vehicle when used. This number must be set between 0 and 100. 100 will mean that the Mobile Spike will be effective every time when used correctly, by default this is set to 60%.

radiusToAttachToVehicle - This setting determines how close your Mobile Spike needs to be to the tyre in order to burst it. This can be changed to take into account de-sync and anything causing lag on your server, so you may want to extend this if you're struggling to use the spikes effectively.

Discord Logging

We've integrated Discord Logging straight out of the box. You'll be able to receive logs straight into a channel for everything that happens in relation to the Mobile Spike, including installation, deployment, being used on a vehicle and then being removed.

To begin, navigate to your Discord Server and make a new channel or choose an existing one where the logs should be sent to.

Next, follow by Discord to create a Webhook Integration.

Now you have created a webhook, copy this and open the sv_utils.lua file. At the top, you should see:

logging.webhook = "https://discord.com/api/webhooks/"

Paste your webhook within the speech marks and you can now move on to configuring the contents and appearance of the webhooks.

To do this, navigate back to the config.lua file and find the section titled logging = {.

logging = {
        enabled = true,
        displayName = "Mobile Spike",
        colour = 31487,
        title = "**New Log**",
        icon = "https://i.imgur.com/n3n7JNW.png",
        footerIcon = "https://i.imgur.com/n3n7JNW.png",
        dateFormat = "%d-%m-%Y %H:%M:%S", -- Day-Month-Year Hour-Minute-Second
},

If you want to enable logging, make sure this is enabled as such in the config under the logging section.

The displayName property determines the name that the webhook will use when logging events from the resource into your selected channel.

The title simply sets the title of the logs.

The icon and footerIcon properties decide the images that are displayed, one of which is in the footer and one larger, next to the logged data. By default, we've configured this to the London Studios logo.

The dateFormat property allows you to decide how the date and time is formatted in the timestamp part of the log, showing you the exact time of the action. You can configure this to just show the date for example, removing hours, minutes and seconds if you wish to do so.

Animation & Sound

We've added an animation for setting up/removing the Mobile Spike and also a sound for when it is deployed inside the vehicle. This can be configured below. Firstly, open the config.lua file.

Animation

Navigate to the animation = { section.

animation = {
    enabled = true,
    dict = "mini@repair",
    name = "fixing_a_ped"
}

Setting enabled to false will allow you to disable the animation, allowing the Mobile Spike to be setup instantly rather than going through an animation process each time. We've enabled this by default as it is realistic to have to install it on the vehicle every time.

dict - This is the animation dictionary. name - This is the animation name.

Sound

Navigate to the mobilespikeSound = { section.

mobilespikeSound = {
    enabled = true,
    soundName = "Activate_Trap",
    soundDict = "DLC_AW_Trap_Controller_Sounds",
}

By default, we've configured this to play a beep sound for all passengers in the vehicle that the Mobile Spike is deployed in. Deployment means when the Mobile Spike is lowered, ready to be used.

Setting enabled to false will disable the deployment sound.

soundName - This is the sound name. soundDict - This is the sound dictionary.

The colour property sets the colour of the embedded messages. This uses a decimal colour system, you can select a colour . This is different to hexadecimal so ensure you have copied the right value after selecting a colour.

You can find a list of animations . The left column is the dictionary and the right column is the name. By default, we've configured an animation which we believe will work for most servers.

A list of frontend sounds can be found .

this tutorial
here
here
here