HEX
HexscriptsClassicFood

Configurations

Here you will get all configurations & open source files that are included within this script.

Open Source Files

Config = {}

Config.Debug = false

Config.FrameWork = {
    name = 'ESX', --Only ESX
    loadFunc = function() --Your Framework Load Function
        return exports['es_extended']:getSharedObject()
    end,
    StartProgressBar = function(name, sec) --Your Framework ProgressBar Function, it needs to trigger a client event with the name and sec as arguments.
        print('Start ProgressBar for:', name, 'Seconds:', sec)
        -- exports['myProgressbar']:start(sec)
    end
}

Config.HudType = 1 --1 2 3
Config.NetworkObject = false -- if you want to sync the food and thirst with other players

Config.Interval = {
    food = 420, --Seconds for 1% Falling
    thirst = 220, --Seconds for 1% Falling
}

Config.DamageTick = 5 --Each 500MS

Config.NoZone = { --Places where the Food and Thirst dont Decrease
    vector3(1, 2, 3),
    vector3(4, 5, 6),
}

Config.NoZoneSize = 125.0 --Size from the given Zones above.

--Animation Dict and Name can be found here: https://alexguirre.github.io/animations-list/
--Props can be found here: https://forge.plebmasters.de/objects
Config.Items = {
    ['test_food'] = {
        type = 'food',
        anim = {
            dict = 'mp_player_inteat@burger',
            name = 'mp_player_int_eat_burger',
            prop = 'prop_taco_01',
            propAttach = { -- Optional, if not given it will use default values which are good for most items, but you can customize it for each item if you want.
                boneIndex = 18905,
                attachX = 0.15,
                attachY = 0.040,
                attachZ = 0.025,
                rotationX = 15.0,
                rotationY = 175.0,
                rotationZ = 0.0
            },
            sec = 5
        },
        val = 5,
    },
    ['test_drink'] = {
        type = 'thirst',
        anim = {
            dict = 'mp_player_intdrink',
            name = 'intro_bottle',
            prop = 'prop_ld_flow_bottle',
            sec = 10
        },
        val = 1
    },
    ['test_both'] = {
        type = 'both', --BOTH HAS NO CUSTOM ANIMATION, ONLY THE PROP!
        anim = {
            prop = 'prop_ld_can_01',
            sec = 3
        },
        val = 100
    },
}

On this page