renzu_illness
introduction
Hi lovely community, im sharing one of resource i made for the server i manage.
Created a month ago, so this is not inspired from any sickness resource existing on this past weeks.
i would like to share my other new resource too, but while the new rules of forums to post topic every 12 hours only, im gonna start with this one and share others later.
What is this resource:
Fivem Player Decease and illness. including covid, hepatitis, cough, dengue and more
Download
Features
- Job Based Treating Menu
- Item Based Treatments
- Multiple Illness Preconfigured. covid,cough, heptatis,tetanus,dengue,chickenpox,diareah and dehydration.
- Illness are saved locally only
- Immune System - if immune system is low. players will get sick easily.
- Face Mask - Avoid Covid virus
- Immunesystem and immunelevel are saved in esx_status
- Viral Virus Covid. covid will spread in players if they are not in face mask or lowered immunelevel and system.
Dependencies
- ox_lib
- ox_inventory
- ESX Framework Legacy
- esx_status
exports and commands
- /status – check status of illnesses
-- Checking and Treating Patient
exports.renzu_illness:Status(PLAYERID) -- Player ID of patient (for ambulance menu example)
-- Setting Illness Manually
exports.renzu_illness:SetIllnes('covid')
-- Removing Illness Manually
exports.renzu_illness:RemoveIllnes('covid')
Installation
- goto /renzu_illness/ox_inventory/items.lua
- Install the Items to ox_inventory
- ensure the renzu_illness after ox_lib, ox_inventory, esx_status
more info
- This resource emulate Sickness and decease,
- by default ambulance job can treat players (if you dont sell medicine items)
- supports item based medicine if you want to sell it on ex. Pharmacy
- player will get sick if they are not taking multivitamins or if player immune system is low.
config is very easy to add new sick/decease logic. - for now this only support ESX.
but its quite easy to implement this on other framework.
the only snippet requires Framework is the Job checking, i will implement QBcore later when im free to do. - this was tested for a month and lot of bugs and player issues is fixed and adjusted to make sure player wont dislike the current state of resource.
sickness / decease triggered
-
Cough - if player is near on any vehicle muffler. if Night and not in any interior/MLO - Effect Coughing
-
Chickenpox - Triggered by high stress and Drug status. - Effect Skin Rashes
-
Hepatitis - Triggered by high stress and Drug status. - Effect Skin and eye Yellowish
-
Diarea - Triggered by high stress ,Drug status and Over eating ( hunger status ) - Effect Pooping
-
Covid - 30 times coughing without medication (configurable) or spread by other players. - Effect Coughing and health degenration.
-
Dengue - Cause by mosquitos - Effects animations and walking styles
-
Tetanus - cause by bullets, or any sharp object hitted on player body. Effects slow walking
-
Dehydration - cause if player has low thirst status - Effects Skin Aging
-
all sickness and decease are triggered successfully if player has Low Immune system.