A lightweight survival helper that simulates ambient temperature, wetness and stamina for FiveM players.
- Calculates world temperature from weather, time, altitude, biome and nearby water
- Raises or lowers player risk and drains hunger/thirst when conditions are extreme
- Tracks wetness and stamina, including optional heat zone support
- Sends updates to the server and exposes exports so other resources can read the values
- Detects ESX, QBCore, ox_lib and GES-SurvCore automatically; works standalone if nothing is present
- Drop the folder in your
resourcesdirectory - Add
ensure GES-Temperatureinserver.cfg - Tweak options in
config.lua(enable heat zones, stamina modifiers, etc.)
Other scripts can pull the latest stats:
local temp = exports['GES-Temperature']:getTemperatureData(source)
local wet = exports['GES-Temperature']:getWetnessData(source)
local stam = exports['GES-Temperature']:getStaminaData(source)These values update every few seconds and can drive your own gameplay effects.
- ox_lib for nicer notifications
- ESX / QBCore to apply hunger and thirst drains
- GES-SurvCore if installed; otherwise this resource stores data itself
Made by GES – pull requests are welcome.