Giter Club home page Giter Club logo

jim-djbooth's Introduction

jim-djbooth

Play music at configured coords!

My edit that uses qb-menu icons and allows qb-target to be used for every location

Targets are generated as "Circle Zones" from the coords set for each location.

Has Dynamic menu that changes depending on state of music.

Dependencies

Prequisites

- Download the zip and extract the folder
- If needed, rename the folder to from xsound-master to xsound
- Place the folder in your server folder inside [standalone]

Installation

- Download the zip and extract the folder
- If needed, rename the folder to from "jim-djbooth-master" to "jim-djbooth"
- Place in a folder called [jim-extras]
- Make sure it starts AFTER xsound and BEFORE any scripts that make use of it

Example of my load order:

# QBCore & Extra stuff
ensure qb-core
ensure [qb]
ensure [standalone]
ensure [voice]
ensure [defaultmaps]
ensure [vehicles]

# Extra Jim Stuff
ensure [jimextras]
ensure [jim]

Adding new locations

  • You can manually add locations in the config.lua
  • For example:
{ -- Sisyphus Theater
    job = "public",                             -- "public" 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)
},
  • 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),
    },
)
  • This will make the extra dj-booth's from other scripts as plug and play as possible

Previews

unknown (12) ox

Changelog

v1.3.2:

- Now with less errors and real setup info

v1.3.1:

- Fix syncing locations at players load in
- Fix the version check html link

v1.3:

- Add support for creating DJ-booth's from other scripts

v1.2:

- Rewrite
- Support for OX_lib context menus

jim-djbooth's People

Contributors

jimathy avatar ghzgarage avatar vosscat avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.