Lumen Works
  • Welcome
  • RedM
    • 🐍Animal Effects
    • 🎵Music
    • 🎄Events
    • 💪Talents
    • 🍺Moonshiner
    • 🎰Lottery
    • 🗣️Rumors
    • ☘️Herbs
    • 📋Player List
Powered by GitBook
On this page
  • Installation
  • Framework
  • Language
  • Phonograph Configuration
  • Notifications
  1. RedM

Music

Documentation relating to the lumen_music

PreviousAnimal EffectsNextEvents

Last updated 1 year ago

Installation

  • Works with / / . Be sure you installed one of them before to use this script.

  • You need to have 3 utility scripts. These will be provided by discord

    • redemrp_menu_base

    • tp_inputs

    • uiprompt

    • xsound

  • Drag and drop the resource in your resources folder

    • lumen_music

  • Add this ensure in your server.cfg below under all utility scripts (uiprompt,xsound etc)

    • ensure lumen_music

  • Edit the config.lua to make sure to customize the code

If you have any questions, please contact our lumen works discord.

Framework

Config.framework = "redemrp"

You can set the framework you need. The available options are "redemrp" or "vorp".

Language

Config.Text = {
   [1] = "Use",
   [2] = "Volume",
   [3] = "Duration",
   [4] = "Set Song",
   [5] = "Change Song",
   [6] = "Duration",
   [7] = "Pause / Resume", 
   [8] = "Cancel",
   [9] = "Information",
   [10] = "Phonograph",
   [11] = "You don't (~e~have~q~) enough dollars, you need $",
   [12] = "Price: $",
   [13] = "Custom link",
   [14] = "Confirm",
   [15] = "Decline",
   [16] = "Insert a youtube link",
}

Phonograph Configuration

```lua
   ["Phonograph Saint Denis 1"] = {
      code = "sd1",
      coords = vector3(2638.0754, -1227.0169, 52.23),
      createprop = false,
      coordsProp = vector3(2638.53125, -1226.9622802734375, 53.42906951904297),
      heading = -88.8661117553711,
      price = 2.5,
      freejobs = {"tabern","police"},
      customLink = true,
      songlist = {
         { link = "https://www.youtube.com/watch?v=KzCq8c2HbhY", text = "Moonlight bay" },
         { link = "https://www.youtube.com/watch?v=eIsduCQ7ByE", text = "When Irish Eyes are Smiling" },
      }
   },
```

Here you can add as many phonographs as you want and you can customize it

  • ["Phonograph Saint Denis 1"] : It is the name of the phonograph.

  • code : Here you have to enter the unique code for each phonograph, it is necessary for the correct operation but the player does not have to know it.

  • coords: Coordinates to interact with the phonograph

  • createprop: Create the phonograph object on the server, "true" to enable it, "false" to disable it.

  • coordsProp: Object coordinates.

  • heading: Object heading

  • price: The price the player must pay to play the song.

  • freejobs: The works that you add will have no cost when playing a song.

  • customLink: allows the player to enter a custom youtube link.

  • songlist: List of preset songs.

Notifications

Config.notifyClient = function(text)
    TriggerEvent('redem_roleplay:ShowObjective', text, 4000)
end

Config.notifyServer = function(text,src)
    TriggerClientEvent('redem_roleplay:ShowObjective',src, text, 4000)
end

You can set your custom notification system here, by default redemrp is added

RedEM:RP
VORP
RSG
🎵
Page cover image