Config Preview
π§ See the current config files
Viority LifeInvader Notify 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_lifeinvadernotify:' -- 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 Notify Settings
ViorityCore.ViorityPlaytimeRewards = false -- If you want to use the Viority Playtime Rewards
ViorityCore.CopyNameKey = 57 -- Default F10 | Also change it in the Locales!!!
ViorityCore.CopyPhoneKey = 344 -- Default F11 | Also change it in the Locales!!!
ViorityCore.CopyName = function(CurrentName)
print("Copy Name to Clipboard: " .. CurrentName)
-- Play Sound
PlaySoundFrontend(-1, "ATM_WINDOW", "HUD_FRONTEND_DEFAULT_SOUNDSET", 1)
-- Copy Name to Clipboard
SendNUIMessage({
type = "copy:clipboard",
CopyText = CurrentName
})
end
ViorityCore.CopyPhoneNumber = function(CurrentPhoneNumber)
print("Copy Phone Number to Clipboard: " .. CurrentPhoneNumber)
-- Play Sound
PlaySoundFrontend(-1, "ATM_WINDOW", "HUD_FRONTEND_DEFAULT_SOUNDSET", 1)
-- Copy Phone Number to Clipboard
SendNUIMessage({
type = "copy:clipboard",
CopyText = CurrentPhoneNumber
})
end
Viority LifeInvader Notify Locales
Reminder: You can create your own locale file in your language π
en.lua
ViorityLocales['en'] = {
["unknownID"] = "Unknown",
["anonym"] = "Anonymous",
["advertisementLabel"] = "Advertisement",
["unknownMessage"] = "Could not load the message!",
-- Keys
["copyNameKey"] = " F10",
["copyPhoneKey"] = "F11",
}
Last updated