-- config.lua Config = {} Config.Locale = 'sl' Config.UseTarget = true -- Nastavi na true za ox_target, false za ox_lib TextUI Config.DefaultVolume = 0.5 -- ============================================================ -- STATIC DJ TABLES (unchanged from original) -- ============================================================ Config.DJSpots = { { coords = vec3(120.5, -1280.3, 29.5), radius = 45.0, label = "TEST", id = "bennys_dj", job = false }, { coords = vec3(-595.3, -892.4, 23.8), radius = 45.0, label = "Bahama Mamas Glavni Oder", id = "bahama_main", job = "police" } } -- ============================================================ -- PORTABLE BOOMBOX SYSTEM -- ============================================================ Config.Boombox = { -- Inventory item name (must exist in your ESX items table) ItemName = "boombox", -- GTA V prop model for the placed boombox PropModel = "xm3_prop_xm3_boombox_01a", -- Distance (metres) at which a player can interact with a boombox InteractionDistance = 2.5, -- Maximum number of simultaneously placed boomboxes per player -- Set to 0 for unlimited MaxPerPlayer = 2, -- How far away a player can hear a boombox (audio streaming radius) -- This is also used as the ox_target / TextUI detection radius AudioRadius = 30.0, -- Default master volume for newly placed boomboxes (0.0 – 1.0) DefaultVolume = 0.5, -- Optimisation: client will only render (spawn prop + register target) -- boomboxes within this distance. Farther ones are skipped until the -- player moves close enough. Should be >= AudioRadius. StreamDistance = 80.0, -- -------------------------------------------------------- -- Permission / control modes -- Determines who can press Play / Pause / Stop on a boombox. -- -- "everyone" – any player nearby can control it -- "owner" – only the player who placed it -- "job" – players whose current job matches ControlValue -- "gang" – players whose current gang matches ControlValue -- (requires ox_core / qb gang field; ESX users set "job") -- -- ControlValue is only read when ControlMode is "job" or "gang". -- -------------------------------------------------------- DefaultControlMode = "everyone", -- applied to every newly placed boombox DefaultControlValue = "", -- e.g. "police" when ControlMode = "job" -- Allow the owner to change control mode after placement? AllowOwnerChangeMode = true, -- Can non-owners always pick up a boombox? (false = only owner can) AnyoneCanPickup = false, } -- ============================================================ -- CARPLAY SYSTEM -- ============================================================ Config.CarPlay = { -- Inventory item name (must exist in your ESX items table) ItemName = "carplay", -- Only the player who installed it can control playback -- (owner = by identifier; future: "job" etc.) ControlMode = "owner", -- Maximum number of vehicles a single player can have CarPlay installed in -- Set to 0 for unlimited MaxPerPlayer = 3, -- Audio is heard ONLY inside the vehicle (no radius falloff outside) -- This is enforced client-side: volume = full when in vehicle, 0 when outside. InVehicleVolume = 1.0, }