🧑‍⚕️
Script Health Insurance
  • Script Health Insurance
Powered by GitBook
On this page

Script Health Insurance

Config.Lua

```lua
Config = {}

Config.Functions = {
    RemoveMoney = true, -- true / false, if true then the player that will be insured automaticly remove money from him...
    Job = false, -- true or false, if true then it will be an ems job or whatever job you want... if false then everyone can get health insurance...
    JobName = 'ambulance', -- name of job if you have Job = true, if false then this will do nothing...
    Interaction = 'text', -- text or target, if text then it will be ox_libs text ui, else if target then it will be with alt or your target resource...
    AddSocietyMoney = true, -- true or false... if true then it will add to society account...
    SocietyAccount = 'society_ambulance', -- which society it will give the money...  if AddSocietyMoney = true .... if AddSocietyMoney = false then will not give money to any society...
}

Config.Database = {
    remove = true, -- true or false, if true then it will remove single day so if you insure yourself for 15 days then you tomorow you have 14 days 13 days etc... when the insurance comes to 0 then it will delete from database...
    hour = 18, -- hour for your to delete, example 07, 10, 12, 15 whatereve hour you like...
    minute = 45 -- minutes for delete, example 05, 10, 25, 53 whatereve minute you like...
}


Config.TextInteraction = {
    distance = 3, -- distance from coords to player when the text ui shows up...
    label = '[E] - Health Insurance', -- label for text ui
    coords = vec3(293.4211, -579.4932, 43.1892), -- coords... for text ui...

}

Config.Health_Insurance = {
    Opcije = {
        {label = 'Insurance 10 days', price = 5000, days = 1,  money = 'money'}, -- label you put what you want.. price, if Config.RemoveMoney = true then put price what you want... DAYS how much you want... And money you have = 'money', 'bank', 'black_money'...
        {label = 'Insurance 20 days', price = 10000, days = 20, money = 'money'},
        {label = 'Insurance 30 days', price = 15000, days = 30, money = 'money'},
    }
}

Config.Input = {
    MainTitle = 'Health-Insurance', -- ox_libs main title...
    MainInput = 'Health-Insurance', -- input of ox_lib
    NameInput = 'Player Name:', -- name
    IdInput = 'Player Id:' -- id...

}

Config.Lang = {
    EMS = {
        DontHaveEnough = 'Your client doenst have enough money for health insurance!' ,
        AlreadyInsured = 'Player is already insured!',
        SuccessfulInsured = 'Player has been successful insured!',
        NotEms = 'You are not EMS worker!'
    },
    SoloPlayer = {
        YouAlreadyInsured = 'You are already insured!',
        InsuredSuccess = 'You have been insured!',
        Paid = 'You paid insurance ',
        DontHaveMoney = 'You dont have enough money to pay!'
    },

}
```

Last updated 1 year ago