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),
}
}
)
Last updated