From the reference libraryFiveM

esx_optionalneeds

esx/src/pages/en/esx_addons/esx_optionalneeds.mdx

esx_optionalneeds

Github Link

ESX Optional Needs, is a system that adds a new layer of realism to your server. What does it add? Alcoholism!

Configuration

  • Config.TickTime
    • type: integer
    • default: 100
    • description: The time in ms between each tick of the system.
  • Config.UpdateClientTime
    • type: integer
    • default: 5000
    • description: The time in ms between each update of the client.

Usage

TriggerEvent("esx_status:add", "drunk", 250000)
Back to documentation