RiP-Lifeinvader
RiP-Lifeinvader gives your players the opportunity to promote via discord and ingame ads.
Config
Some options are explained here. However this does not represent the original config file.
RiP.Price
With this options you can adjust the prices of all features.
RiP.Price = {
Discord = 2000, -- [INTEGER] price for discord ad
Ingame = 4000, -- [INTEGER] price for ingame ad
Text = 1500, -- [INTEGER] price for additional text
Anonym = 500, -- [INTEGER] price for anonymous ad (if selected no public ad possible)
Public = 250 -- [INTEGER] price for public ad (if selected no anonymous ad possible)
}
RiP.Locations
Add as many lifeinvader locations as you want.
RiP.Locations = {
vector3(-1082.0, -247.9, 37.7), -- [VECTOR] lifeinvader & marker position (x,y,z)
-- ...
}
RiP.Cooldown
RiP.Cooldown = 300 -- [INTEGER] global cooldown in seconds
RiP.Discord
RiP.Discord = {
Name = 'RiP-Lifeinvader', -- [STRING] webhook name & titel
Color = 10181046, -- [INTEGER] webhook color
Icon = '', -- [STRING] webhook image/icon
Webhook = '' -- [STRING] discord webhook for all logs
}
RiP.Blip
RiP.Blip = {
Name = 'RiP-Lifeinvader', -- [STRING] blip label
Sprite = 77, -- [INTEGER] blip type
Scale = 0.9, -- [DECIMAL] blip size
Display = 4, -- [INTEGER] blip display type
Color = 13 -- [INTEGER] blip color
}
RiP.Marker
RiP.Marker = {
Type = 22, -- [INTEGER] marker type
Size = {X = 1.0, Y = 1.0, Z = 0.9}, -- [DECIMAL] marker scaling
Color = {R = 117, G = 94, B = 170} -- [INTEGER] marker color (rgb)
}
Notify
Command names and permissions
RegisterNetEvent("RiP-Lifeinvader:notify")
AddEventHandler("RiP-Lifeinvader:notify", function(Type, Time, Titel, Text)
if Type == "lifeinvader" then
Type = "lifeinvader" -- if your notify doesn't have the type "lifeinvader" change the "lifeinvader" to your notify type
end
TriggerEvent('RiP-Notify:Notify', Type, Time, Titel, Text) -- dissable if you're NOT using RiP-Notify
-- ESX.ShowNotification(Text)
end)