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

Was this helpful?

  1. Resources
  2. Smart Fires
  3. Automatic Fires

Adding locations

Adding locations to the automatic fires section is a crucial part of configuring SmartFires to ensure that calls are not too repetitive for those attending them in-game, meaning multiple taking place at the same location. Having a large amount of locations prevents this.

We've setup locations to work both as one long list and also as categories. This enables servers to use our area of patrol settings to set the area of patrol live in game and fires will spawn in that area accordingly provided there are locations setup.

If you do not use the area of patrol settings, you can still categorise locations and the script will pick a random location from any category. This allows you to have your coordinates setup into categories should you wish to move to an area of patrol system in the future.

For example, you may setup a category for the city and another for sandy, this is how we've configured it by default but we've only setup default locations for the city. You may want to gather additional locations for any other categories you create.

How to get coordinates

It is likely your server will have a coordinates tool or ability to have your coordinates on the screen at all times, for example through a menu such as vMenu or even an admin toolkit included in some frameworks.

If your server does not have this ability, we've included a command which can be enabled in the automaticFires section of the config as seen below.

enableLocationCommand = {
            enabled = true, -- The command will give you your current location to insert here, if enabled
            commandName = "mylocation",
            locationColour = "~b~", -- blue
},

There are no permissions to this command as it simply displays a notification to the user with their current location, in a vector3 format. You should also make note of the type of fire it will be, such as a "House" or "Shop" fire, as you will need to record this in the config.

Recording the type of fire allows for automatic fire calls to be created with more of a description, rather than just stating there is a fire, it is better to say there is a House Fire for example, allowing it to be resourced more efficiently relating to the type of fire.

Adding Locations

Coordinates should be added along with the description in the locations = { section of the config.lua file.

-- Use lowercase for location categories
locations = {
            ["city"] = {
                { coords = vector3(387.44, -832.87, 28.29), description = "Shop" },
                { coords = vector3(297.92, -588.88, 42.82), description = "Hospital" },
                { coords = vector3(312.11, -274.83, 53.45), description = "Bank" },
                { coords = vector3(128.41, -214.85, 53.45), description = "Clothing Shop" },
                { coords = vector3(-838.14, -354.27, 37.03), description = "Commercial Building" },
                { coords = vector3(-203.76, -1115.88, 21.82), description = "Construction Site" },
                { coords = vector3(754.81, -791.31, 25.23), description = "Junkyard" },
                { coords = vector3(-8.9, -1565.02, 28.29), description = "Bin" },
                { coords = vector3(20.16, -1505.84, 30.85), description = "Church" },
            },
            ["sandy"] = {

            },
},

As you can see, here are some locations included in the "city" category. If you are not wanting to use multiple categories, just put all of your locations in the city category, this one is already set as default.

All coordinates must be entered in a vector3 format, this is formatted as vector3(x, y, z). The description should be wrapped in speech marks "". Additionally, remember to wrap the entry in curly brackets {} and have a comma between each line.

When adding locations, it may be helpful to just copy existing ones and then edit the coords and description, saving time copying it manually.

All categories are wrapped in square brackets as seen with the ["city"] = { example. Please use lowercase for location categories.

See the next section for more information on our area of patrol settings.

PreviousJob / Permission CheckNextAutomatic Fire Chances

Last updated 4 months ago

Was this helpful?