[PAID] [ESX] Lifeinvader | MK-Services

A script by Pain1435

No reviews yet.
[PAID] [ESX] Lifeinvader | MK-Services main image

Full Description

This resource is compatible with ESX v1.1 / ESX 1.2 (v1 Final) / ESX Legacy (v1.3 - v1.5) / Extendedmode.

Description

An advanced Lifeinvader Script.

Features

  • Configurable ad prices
  • Fully configurable blips, markers & peds
  • Fancy UI
  • Nice looking ad notification
  • Configurable logs (public & admin logs)
  • Adjustable notification event
  • ESX events and prefix customizable
  • Low performance consumption (0.01ms - 0.03ms)

Showcase: Click me
Buy: Click me (Secured by FiveM Escrow System)

Config Snippets:

MK = MK or {}

-- By default 'en' and 'de' are supported.
-- You can modify or add new translations in the translations.lua file
MK.Language = 'en'

MK.ESXSharedObject = 'esx:getSharedObject'

MK.Locations = {
  {
    Position = { x = -1083.083, y = -245.8046, z = 37.763244, h = 211.33657 },
    Blip = {
      Enabled = true,
      Sprite = 77,
      Color = 1,
      Size = 0.8
    },
    Marker = {
      Enabled = false,
      Type = 1,
      Size = { x = 6.0, y = 6.0, z = 0.5 },
      Color = { r = 255, g = 255, b = 255 }
    },
    Ped = {
      Enabled = true,
      Ped = 'cs_movpremmale'
    }
  }
}

MK.Cooldown = 60 -- in seconds

MK.AdTypes = {
  Normal = {
    Amount = 1000,
    Account = 'bank' -- "money", "bank", "black_money" are supported by es_extended by default
  },
  Anonymous = {
    Enabled = true, -- Defines wheter a user is allowed to send anonymous ads or not
    Amount = 2000,
    Account = 'bank' -- "money", "bank", "black_money" are supported by es_extended by default
  }
}

MK.ShowAd = function(text, firstname, lastname)
  SetNotificationTextEntry("STRING");
	AddTextComponentString(text);
	SetNotificationMessage('CHAR_LIFEINVADER', 'CHAR_LIFEINVADER', false, 0, 'Lifeinvader', 'New ad by ' .. firstname .. ' ' .. lastname);
	DrawNotification(false, true);
end

MK.Notify = function(type, message)
  if type == 'success' then
      TriggerEvent('esx:showNotification', message)
  elseif type == 'warning' then
      TriggerEvent('esx:showNotification', message)
  elseif type == 'error' then
      TriggerEvent('esx:showNotification', message)
  elseif type == 'info' then
      TriggerEvent('esx:showNotification', message)
  end
end
MK = MK or {}
MK.Logging = {}
MK.Server = {}

-- ======= DON'T CHANGE ANYTHING ABOVE THIS LINE ======= --

-- Public visible Lifeinvader ads
MK.Logging.PublicLogs = {
  Enabled = false,
  Webhook = '',
  ImageUrl = 'https://static.wikia.nocookie.net/degta/images/6/67/Lifeinvader_icon.png'
}

-- Shows more details to sent ads even if they are anonymous
MK.Logging.AdminLog = ''

MK.Server.Notify = function(playerId, type, message)
  if type == 'success' then
    TriggerClientEvent('esx:showNotification', playerId, message)
  elseif type == 'warning' then
    TriggerClientEvent('esx:showNotification', playerId, message)
  elseif type == 'error' then
    TriggerClientEvent('esx:showNotification', playerId, message)
  elseif type == 'info' then
    TriggerClientEvent('esx:showNotification', playerId, message)
  end
end
Code is accessible No
Subscription-based No
Lines (approximately) LUA: ~678 UI: ~275
Support Yes

Config Merger
Have you tried Config Merger? Merge your configs easily