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
You can set the framework you need. The available options are "redemrp" or "vorp".
Language
Npc Configuration
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
You can set your custom notification system here, by default redemrp is added
Rumors Configuration
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