Kxiox Scripts
  • 📢Discord
  • 💻GitHub
  • 🛡️ks_insurance
    • 📼Preview
    • ⬇️Download and install
    • ⚙️Configuration
    • 💻Developer
  • 💼ks_jobchanger
    • 📼Preview
    • ⬇️Download and install
    • ⚙️Configuration
  • 🔥ks_hydrants
    • 📼Preview
    • ⬇️Download and install
    • ⚙️Configuration
    • 💻Developer
Powered by GitBook
On this page
  • Default Config
  • Color Templates
  • Green 🟢
  • Blue 🔵
  • Lightblue 🔵
  • Red 🔴
  • Yellow 🟡
  • Orange 🟠
  • Purple 🟣
  1. ks_insurance

Configuration

Default Config

Config = {}

Config.Locale = 'de'

Config.Color = '#00de09'
Config.Background = 'linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,13,1,0.9) 58%, rgba(0,29,1,0.9)100%)'

Config.DeductionInterval = 60000 * 60 -- every hour server is remove money

Config.Command = 'versicherungen'
Config.CommandHelp = 'Öffnet das Versicherungsmenü'
Config.CommandLib = true -- using ox_lib for command?

Config.MarkerLib = true -- using ox_lib for marker?
Config.Marker = {
    coords = vector3(-318.9953, -609.8325, 32.5582),
    size = { x = 2.0, y = 2.0, z = 1.0 }, -- y the same like x if u use ox_lib
    type = 1,
    color = { r = 0, g = 255, b = 0, a = 200 }
}

Config.Blip = {
    coords = {x = -318.9953, y = -609.8325, z = 32.5582},
    sprite = 487,
    scale = 1.0,
    color = 2,
    text = 'Versicherung'
}

Config.TextUI = {
    text = "[E] - Versicherung",
    icon = 'file-invoice', -- https://fontawesome.com/search?o=r&m=free
    style = {
        borderRadius = 10,
        backgroundColor = '#48BB78',
        color = 'white'
    }
}

Config.MenuLib = true -- using ox_lib for menu? false = esx menu
Config.Menu = {
    title = 'Versicherungen',
    position = 'top-left' -- menu position if Config.MenuLib false
}

Config.Insurances = {
    car = true,
    krank = true,
    haft = true,
    wohn = true,
    beruf = true,
    recht = true
}

Config.Prices = {
    currency = '€',
    car = 1000,
    krank = 1000,
    haft = 1000,
    wohn = 1000,
    beruf = 1000,
    recht = 1000
}

Config.Vehicles = {
    enabled = true, -- use insurance for every different vehicle (default car insurance will be deactivate)
    price = 100 -- price per vehicle
}

function Notify(text, type, time)
    lib.notify({
        title = 'Versicherung',
        description = text,
        type = type,
        duration = time,
        position = 'top'
    })
end

function ServerNotify(source, text, type, time)
    TriggerClientEvent('ox_lib:notify', source, {
        title = 'Versicherung',
        description = text,
        type = type,
        duration = time,
        position = 'top'
    })
end

function HelpNotify() -- help notify if Config.MarkerLib = false
    ESX.ShowHelpNotification('Drücke ~INPUT_CONTEXT~ um das Menü zu öffnen.')
end

function CreateInsuranceList() -- server side (will trigger after first time open the insurance ui)
    --TriggerServerEvent('ak4y-battlepass:taskCountAdd:standart', 7, 1)
end

if Config.Vehicles.enabled then Config.Insurances.car = false Config.Prices.car = 0 end

Color Templates

Green 🟢

Config.Color = '#00de09'
Config.Background = 'linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,13,1,0.9) 58%, rgba(0,29,1,0.9)100%)'

Blue 🔵

Config.Color = '#170D72'
Config.Background = 'linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,4,13,0.9) 58%, rgba(0,4,29,0.9) 100%)'

Lightblue 🔵

Config.Color = '#16D8D5'
Config.Background = 'linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,10,13,0.9) 58%, rgba(0,94,130,0.9) 100%)'

Red 🔴

Config.Color = '#ff0000'
Config.Background = 'linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(13,0,0,0.9) 58%, rgba(61,0,0,0.9) 100%)'

Yellow 🟡

Config.Color = '#A39D15'
Config.Background = 'linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(11,13,0,0.9) 58%, rgba(59,61,0,0.9) 100%)'

Orange 🟠

Config.Color = '#F98100'
Config.Background = 'linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(13,7,0,0.9) 58%, rgba(61,32,0,0.9) 100%)'

Purple 🟣

Config.Color = '#9000FF'
Config.Background = 'linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(9,0,13,0.9) 58%, rgba(34,0,61,0.9) 100%)'
PreviousDownload and installNextDeveloper

Last updated 6 months ago

🛡️
⚙️