๐ก๏ธTemperature System
A comprehensive temperature and climate control system for FiveM servers.
Features
Dynamic temperature system affected by weather conditions
Vehicle climate control system
Temperature effects based on clothing
Wet/dry system with gradual drying
Interior/exterior temperature differences
Fire proximity temperature effects
Damage system for extreme temperatures
Dependencies
Required: One of these weather systems:
cd_easytime
qb-weathersync
0r-easytime
Installation
Download the resource
Add to your resources folder
Add to server.cfg:
ensure hate-temp
Configure
config.lua
to your needsSelect your weather system in config:
Config.WeatherSystem = 'cd' -- 'cd' for cd_easytime | 'qb' for qb-weathersync | '0r' for 0r-easytime
Configuration
The main configuration file config.lua
allows you to customize various aspects of the temperature system:
Weather System
Config.WeatherSystem = 'cd' -- Select weather system: 'cd', 'qb' or '0r'
Damage Settings
Config.TooHotDamage = 2 -- Damage taken above 35ยฐC
Config.TooHotDamage2 = 3 -- Damage taken above 40ยฐC or near fire
Config.TooColdDamage = 2 -- Damage taken below 0ยฐC
Config.DamageCooldown = 30 -- Normal heat damage cooldown
Config.DamageCooldownHot = 25 -- Extreme heat damage cooldown
Config.DamageCooldownCold = 30 -- Cold damage cooldown
Temperature Effects
Config.FireDistance = 3.0 -- Distance to be affected by fire
Config.FireBonus = 20.0 -- Temperature increase near fire
Config.InteriorBonus = 5
Exports
The resource provides the following client-side exports:
-- Get current temperature
exports['hate-temp']:gettemp()
-- Check if player is wet
exports['hate-temp']:iswet()
-- Toggle temperature effects UI
exports['hate-temp']:toggleUI(state)
-- Show climate control UI
exports['hate-temp']:showUI()
-- Hide climate control UI
exports['hate-temp']:hideUI()
-- Check if climate UI is open
exports['hate-temp']:isUIOpen()
Support
For support, join our Discord server or create an issue on GitHub.
Security Notice
This script is protected by FiveM's escrow system. The client and server-side code is encrypted and cannot be modified.
Last updated