Config Preview
π§ See the current config files
Viority LifeInvader Config
ViorityCore.lua
--- @diagnostic disable: duplicate-set-field, undefined-field, inject-field
ViorityLocales = {} -- Do not touch this!
ViorityCore = {} -- Do not touch this!
-- Version Notification
ViorityCore.VersionNotification = {
['activate'] = false, -- Activate the Version Notification
['webhook'] = "https://canary.discord.com/api/webhooks/XXX/XXX", -- Change the Webhook for the Version Notification
}
-- Activate the Debug modus to identify a bug in the code
ViorityCore.DebugMode = false
-- Basic Settings
ViorityCore.InternalPrefix = 'viority_lifeinvader:' -- The Internal Trigger Prefix | Attention you have to change any integrations in other scripts!
ViorityCore.EventWrongToken = function(source) -- This happens when a player tried to trigger an event with the wrong token! Most likely, it will be a cheater who tries to gain unfair advantages through serverside events.
-- You can implement a ban system here!
DropPlayer(source, "β€οΈ Do not try to cheat on our server!")
end
ViorityCore.Locales = 'de' -- Choose your Language (de or en) | You can add more in the locales folder!
ViorityCore.OS = 'windows' -- Choose your OS (windows or linux)
ViorityCore.GiveCredits = true -- Give Credits to Viority <3
ViorityCore.NativeInteraction = false -- If you want to use the Native Interaction in bridge instead of our Interaction. Attention this will increase the client-performance!
ViorityCore.Notify = function(message)
print(message) -- Print the Message in the Console (for Debugging)
TriggerEvent("viority_hud:client:Notify", 1, 1, "XXX", message) -- Use the Viority HUD Notification System
end
-- Viority Lifeinvader
ViorityCore.OpenDefaultKey = 'e'
ViorityCore.PriceFormat = {
Symbol = '$',
BehindNumbers = true
}
ViorityCore.LifeInvaderNotify = function(data)
-- Use this data to build your message
-- This is on serverside!
-- PhoneNumber is the dummy (ViorityCore.AnonymousNumber) when type is set to anonymous
local AdvertisementID = data.id
local PlayerName = data.name
local PhoneNumber = data.phone_number
local Visibility = data.visibility
local Message = data.message
-- π Viority Lifeinvadernotify
TriggerClientEvent("viority_lifeinvadernotify:client:LifeInvaderNotify", -1, AdvertisementID, Visibility == 'anonymous', PlayerName, PhoneNumber, Message, 15000)
-- Trigger your Notify System
TriggerEvent("viority_hud:client:Notify", 1, 1, "LifeInvader", PlayerName .. "(" .. PhoneNumber .. ")" .. ": " .. Message)
end
ViorityCore.MaxMessage = 250 -- Maximum Message Chars
ViorityCore.BoardDuration = {
min = 5, -- In minutes
max = 300
}
ViorityCore.Cost = {
Advertisement = 1500,
AdvertisementBoard = 2500,
AdvertisementColor = {
red = 100,
orange = 200,
yellow = 200,
green = 200,
cyan = 200,
blue = 200,
purple = 200,
pink = 200,
custom = 500
},
AdvertisementDuration = 50, -- Extra cost for Board (each minute)
AdvertisementVisibility = {
public = 1500,
anonymous = 3000
},
AdvertisementFont = {
font1 = 1500,
font2 = 1750,
font3 = 2000,
font4 = 2250
}
}
ViorityCore.MoneyAccount = 'money' -- [money, bank, black_money]
ViorityCore.AnonymousNumber = '0180235335' -- This is a dummy for all anonymous advertisements
ViorityCore.LifeInvaders = {
-- Ped Models: https://docs.fivem.net/docs/game-references/ped-models/
-- Coordinates: X - Y - Z
-- Heading: Specific Direction (0Β° - 360Β°)
{
id = 'lifeinvader_hq', -- unique id
type = 'lifeinvader', -- [lifeinvader, advertisement]
ped = {
model = "a_m_y_smartcaspat_01",
pos = vector3(-1083.00, -245.8, 36.7632),
heading = 202.35,
radius = 3.0
},
blip = {
pos = vector3(-1083.00, -245.8, 36.7632),
name = "LifeInvader",
sprite = 77,
color = 1,
scale = 0.9
}
},
{
id = 'meeting_point', -- unique id
type = 'advertisement', -- [lifeinvader, advertisement]
ped = {
model = "cs_barry",
pos = vector3(264.3598, -1026.8140, 28.2166),
heading = 183.0250,
radius = 3.0
},
blip = {
pos = vector3(264.3598, -1026.8140, 28.2166),
name = "Advertisement",
sprite = 793,
color = 1,
scale = 0.7
}
},
{
id = 'pier', -- unique id
type = 'advertisement', -- [lifeinvader, advertisement]
ped = {
model = "cs_barry",
pos = vector3(-1841.1890, -1235.5289, 12.2287),
heading = 318.9018,
radius = 3.0
},
blip = {
pos = vector3(-1841.1890, -1235.5289, 12.6287),
name = "Advertisement",
sprite = 793,
color = 1,
scale = 0.7
}
},
{
id = 'park', -- unique id
type = 'advertisement', -- [lifeinvader, advertisement]
ped = {
model = "cs_barry",
pos = vector3(1119.5497, -639.9218, 55.8129),
heading = 280.9879,
radius = 3.0
},
blip = {
pos = vector3(1119.5497, -639.9218, 55.8129),
name = "Advertisement",
sprite = 793,
color = 1,
scale = 0.7
}
},
{
id = 'sandy_gasoline', -- unique id
type = 'advertisement', -- [lifeinvader, advertisement]
ped = {
model = "cs_barry",
pos = vector3(2001.2975, 3779.8718, 31.1808),
heading = 202.4265,
radius = 3.0
},
blip = {
pos = vector3(2001.2975, 3779.8718, 31.1808),
name = "Advertisement",
sprite = 793,
color = 1,
scale = 0.7
}
},
{
id = 'paleto_gasoline', -- unique id
type = 'advertisement', -- [lifeinvader, advertisement]
ped = {
model = "cs_barry",
pos = vector3(162.1085, 6636.6997, 30.5535),
heading = 131.8155,
radius = 3.0
},
blip = {
pos = vector3(162.1085, 6636.6997, 30.5535),
name = "Advertisement",
sprite = 793,
color = 1,
scale = 0.7
}
}
}
Viority LifeInvader Locales
Reminder: You can create your own locale file in your language π
en.lua
ViorityLocales['en'] = {
-- Keybind
['keybind_open_lifeinvader'] = 'Open the LifeInvader',
-- NUI
['nui_category_color'] = 'Color',
['nui_category_duration'] = 'Duration',
['nui_category_visibility'] = 'Visibility',
['nui_category_font'] = 'Font',
['nui_category_billing'] = 'Bill',
['nui_category_board'] = 'Advertisement Board',
['nui_message_placeholder'] = 'Enter your advertisement here...',
['nui_advertisement_types'] = {
['board'] = 'With Board',
['announce'] = 'Only announcement',
},
['nui_duration_unit'] = 'Minutes',
['nui_visibility'] = {
['public'] = 'Public',
['anonymous'] = 'Anonymous'
},
['nui_buy_button'] = 'Purchase',
-- Billing Table
['billing_header_product'] = 'Product',
['billing_header_quantity'] = 'Quantity',
['billing_header_price'] = 'Price',
['billing_row_advertisement'] = 'Advertisement',
['billing_row_advertisementboard'] = 'Advertisement Board',
['billing_row_color'] = 'Color',
['billing_row_colors'] = {
['red'] = 'red',
['orange'] = 'Orange',
['yellow'] = 'Yellow',
['green'] = 'Green',
['cyan'] = 'Cyan',
['blue'] = 'Blue',
['purple'] = 'Purple',
['pink'] = 'Pink',
['custom'] = 'Custom',
},
['billing_row_duration'] = 'Duration',
['billing_row_duration_unit'] = 'Minutes',
['billing_row_visibility'] = 'Visibility',
['billing_row_visibility_types'] = {
['public'] = 'Public',
['anonymous'] = 'Anonymous'
},
['billing_row_font'] = 'Font',
['billing_row_total'] = 'Total',
-- Advertisement Board
['board_advertisement'] = 'Advertisement',
['board_time_remaining'] = 'Minutes remaining',
-- Notify
['notify_not_enough_money'] = 'You can\'t afford to advertise!',
-- Interaction
["nui_interaction_press"] = "PRESS",
["nui_interaction_open"] = "TO INTERACT",
}
Last updated