HexscriptsVersion 2.0Lifeinvader
Configurations
Here you will get all configurations & open source files that are included within this script.
Config Files
Config = {}
Config.Locale = 'de'
Config.Position = {
coords = vector4(3034.6628, -4654.4146, 15.2615, 26.8913),
ped = {
enabled = false,
distance = 1.0,
hash = joaat('CS_FBISuit_01')
},
marker = {
enabled = true,
type = 0,
scale = vector3(0.5, 0.5, 0.5),
color = {
red = 255,
green = 46,
blue = 58,
alpha = 100
},
moveUpAndDown = false,
rotate = true
},
blip = {
enabled = true,
coords = vector3(3034.6628, -4654.4146, 15.2615),
sprite = 77,
scale = 0.8,
color = 1,
display = 4,
shortRange = true,
text = 'Lifeinvader'
}
}
Config.Avatar = true -- need steam api linked
Config.Cooldown = 300 -- seconds
Config.Price = {
minLetter = 15,
maxLetter = 150,
price = 2500,
perLetter = true,
pricePerLetter = 100
}
Config.blacklistedStrings = {
"<",
">",
"mp3",
"mp4"
}
Config.Locales = {
['de'] = {
['press_e'] = 'Drücke E um eine Werbung zu schalten',
['message_short'] = 'Deine Nachricht ist zu kurz (mind. %s Buchstaben)',
['message_long'] = 'Deine Nachricht ist zu lang (max. %s Buchstaben)',
['not_enough'] = 'Du hast nicht genug Geld dabei!',
['cooldown'] = 'Derzeit ist ein Cooldown aktiv!',
['you_paid'] = 'Du bezahlst %s$!',
['blacklisted_string'] = 'Blacklisted string detected!',
['webhook_username'] = '@%s',
['webhook_description'] = '%s\n\nTelefonnummer: %s',
['webhook_date'] = "Werbung geschalten am %s um %s"
},
['en'] = {
['press_e'] = 'Press E to display an advertisement',
['message_short'] = 'Your message is too short (at least %s characters)',
['message_long'] = 'Your message is too long (max. %s characters)',
['not_enough'] = "You don't have enough money!",
['cooldown'] = 'Currently a cool down is active!',
['you_paid'] = 'You payed %s$!',
['blacklisted_string'] = 'Blacklisted string detected!',
['webhook_username'] = '@%s',
['webhook_description'] = '%s\n\nPhonenumber: %s',
['webhook_date'] = "Advertisement placed on %s at %s"
}
}
function NotifyLifeinvader(name, text, phone_number, timeout)
AddTextEntry('esxAdvancedNotification', text)
BeginTextCommandThefeedPost('esxAdvancedNotification')
EndTextCommandThefeedPostMessagetext('CHAR_LIFEINVADER', 'CHAR_LIFEINVADER', false, 1, 'Lifeinvader News', 'Es wurde eine ~g~Werbung~w~ von ' .. name .. ' geschaltet!')
EndTextCommandThefeedPostTicker(false, true)
end
function DrawHelpNotify(message)
SetTextComponentFormat('STRING')
AddTextComponentString(message)
DisplayHelpTextFromStringLabel(0, 0, 1, -1)
end
function Notify(title, message, type, timeout)
TriggerEvent('hex_hud:notify', title, message, type, timeout)
end