π£οΈRumors
Documentation relating to the lumen_rumors
Installation
You need to have 3 utility scripts. These will be provided by discord
tp_inputs
uiprompt
xsound
Drag and drop the resource in your resources folder
lumen_rumors
Add this ensure in your server.cfg below under all utility scripts (uiprompt,xsound etc)
ensure
lumen_rumors
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
```lua
Config.Text = {
[1] = "Talk",
[2] = "Writing a rumor costs $",
[3] = "Spread a rumor:",
[4] = "There is already an active rumor",
[5] = "You need $",
[6] = "Confirm",
[7] = "Decline",
[8] = "You have exceeded the maximum number of characters allowed",
[9] = "Maximum characters allowed",
}
```
Npc Configuration
```lua
Config.Npcs = {
{
name = "Jhon Walker",
coords = vector3(-789.563, -1260.44, 43.643),
createNpc = true,
model = "s_m_m_sdticketseller_01",
heading = -67.97882080078,
createblip = true,
blipHash = -2048736478,
blipName = "Rumor NPC 1",
},
```
Here you can add as many vendors as you want and you can customize it
coords: Coordinates to open the lottery manager
createNpc: True if you want the code to create a ped npc
model: Ped model
heading: Ped heading
createblip: True if you want a blip to be shown on the map
blipName: Name of the blip
blipHash: hash for blip
Notifications
```lua
Config.notifyServer = function(text,src)
TriggerClientEvent('redem_roleplay:ShowObjective',src, text, 4000)
end
Config.notifyClient = function(text)
TriggerEvent('redem_roleplay:ShowObjective', text, 4000)
end
```
You can set your custom notification system here, by default redemrp is added
Rumors Configuration
```lua
Config.price = 10
Config.toggleCommand = "togglerumor" --this allows you to deactivate the floating dialogs individually for each player, if you use them again, you can activate them again.
Config.chatalert = true --if true, an alert will appear in the chat to all players.
Config.updatePeds = 8 --this indicates how often every second it checks the poeds around the player
Config.probabilityRumor = 25 --the possibility of activating the rumor in the ped. The higher, the higher the probability that the rumor will appear on nearby peds.
Config.buttonHash = 0x760A9C6F--0xB2F377E8 --button hash to create the rumor
Config.areaRumor = 7 --maximum area where you will check the distance of the peds next to the player, the higher the more peds you will add to the table.
Config.timer = 120 --time in secons that the rumor will last on the server
Config.Font = 25 --font type ,you can see the available here https://cdn.discordapp.com/attachments/1005070596369043516/1005196005790195743/unknown.png
Config.color = {r= 0, g = 255, b = 255, a =250} --font color
Config.sizeLetter = 0.25 --font size
Config.lineBreaker = 10 --indicates the number of words to make a line break in rumor text
Config.textSize = 150 --total rumor size allowed (letters and spaces are counted)
Config.webHook = "" --url webhook discord
```
price: Price of rumor.
toggleCommand: This allows you to deactivate the floating dialogs individually for each player, if you use them again, you can activate them again.
chatalert: if true, an alert will appear in the chat to all players.
updatePeds: this indicates how often every second it checks the poeds around the player.
probabilityRumor: the possibility of activating the rumor in the ped. The higher, the higher the probability that the rumor will appear on nearby peds.
buttonHash: button hash to talk to npc rumor.
areaRumor: maximum area where you will check the distance of the peds next to the player, the higher the more peds you will add to the table.
timer: time in secons that the rumor will last on the server.
Font: font type ,you can see the available here in config (link).
Color: color rgba.
sizeLetter: font size.
lineBreaker: indicates the number of words to make a line break in rumor text.
textSize: total rumor size allowed (letters and spaces are counted).
webhook: discord url webhook.
Warning!
The rumor does not apply to animals, players, unconscious or dead peds
Last updated