JixelPatterns
  • JixelPatterns Documentation
  • Troubleshooting
    • Common Issues
    • Setting Up Locations
    • FAQ
  • Dependency
    • Jim_Bridge
      • Animal Ped Support
      • Script Helpers
      • Loader Functions
      • Callbacks
      • Cameras
      • Context Menus
      • Crafting
      • DrawText
      • Dui Functions
      • Input Creator
      • Inventories
      • Job Functions
      • Make Functions
      • Meta Handlers
      • Notifications
      • Phones
      • Player Functions
      • Poly Zones
      • Progress Bars
      • Scale Entity
      • Shops
      • Skillcheck
      • Society Banking
      • Stash Control
      • Targets
      • Vehicles
      • Wrapper Functions
      • Scaleforms
  • Paid Assets
    • Jim-Mechanic
      • Common Issues
      • Installation
      • Locations
        • Creating a Location
      • Nitrous
      • Harness + Seatbelt
      • Emergency Repair Bench
      • Odometer
      • Speedometer
      • Performance Mods
      • Preview System
      • Repair System
      • Car Lifts
      • Plate Change
      • Push Vehicle
      • Stancer Kit
      • Vehicle Seat Picker
    • Jim-Bakery
      • Installation
    • Jim-BeanMachine
      • Installation
    • Jim-BurgerShot
      • Installation
    • Jim-CatCafe
      • Installation
    • Jim-Henhouse
      • Installation
    • Jim-PizzaThis
      • Installation
    • Jim-Popsdiner
      • Installation
  • Free Assets
    • Jim-Mining
      • Installation
      • How To Use
        • Mining
        • Stone Washing
        • Gold Panning
    • Jim-Recycle
      • Installation
      • How To Use
        • Recycling
        • Dumpster Diving
        • Scrapping
    • Jim-Payments
      • Installation
      • How To Use
    • Jim-Shops
      • Installation
      • How To Use
    • Jim-Boarding
      • Installation
      • How To Use
    • Jim-Trains
      • Installation
      • How To Use
    • Jim-Consumbles
      • Installation
      • How To Use
    • Jim-DJBooth
      • Installation
      • How To Use
    • Jim-JobGarage
      • Installation
      • How To Use
    • Jim-Chairs
      • Installation
    • Jim-Notepad
      • Installation
      • How To Use
Powered by GitBook
On this page
  1. Free Assets
  2. Jim-DJBooth

How To Use

Adding new locations

You can manually add locations in the config.lua

  • For example:

{ -- Sisyphus Theater
    job = "public",                                     -- "public" or nil makes it so anyone can add music.
    enableBooth = true,                                 -- option to disable rather than deleting code
    DefaultVolume = 0.15,                               -- 0.01 is lowest, 1.0 is max
    radius = 200,                                       -- The radius of the sound from the booth
    coords = vec3(206.9, 1181.04, 226.51),              -- Where the booth target is located
    soundLoc = vec3(212.32, 1155.87, 227.01),           -- Add sound origin location (optional)
    prop = {                                            -- Add an optional prop for players to target
        model = "prop_radio_01",                        -- the prop model
        coords = vec4(-1190.22, -897.46, 14.83, 40),    -- the prop location and heading
    }
},

You can also add them from other scripts with the server sided event:

TriggerEvent("jim-djbooth:server:AddLocation",
    { -- Sisyphus Theater
        job = "public",
        enableBooth = true,
        DefaultVolume = 0.15, radius = 200,
        coords = vec3(206.9, 1181.04, 226.51),
        soundLoc = vec3(212.32, 1155.87, 227.01),
        prop = {
            model = "prop_radio_01",
            coords = vec4(-1190.22, -897.46, 14.83, 40),
        }
    }
)
PreviousInstallationNextJim-JobGarage

Last updated 5 days ago