Renzu_illness - Fivem Player Decease and illness

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.

24 Likes

Awesome work!

6 Likes

thank bro , i love you

2 Likes

It’s free so can’t complain but would be cool for qb-core and SQL saving.

2 Likes

Another Great free mod. You out here saving us with these awsonme free scripts. I saw that Renzu_Race thing, i can’t wait to see what you do with that one.

1 Like

Wow this looks really interesting! Thanks for your resources!

1 Like

do you mean saving the illness of player?
this could be achieve without sql resource.
we can use SetResourceKvp in client

EDIT:

1 Like

Nah talking for sql for us in frameworks eax/qb-core etc

people can modify the resource as they want, if they like mysql saving.
for me its just extra server load for the same purpose.
i provide a KVP saving to restore the illness of player its should be the same purpose as SQL saving, unless you wanted to manualy removed illness.

developers can just use exports for that purpose :wink:

exports.renzu_illness:RemoveIllnes('covid')

nice work bro

1 Like

esx_status, just tracking health/stress and so forth?
wondering if this could be easily adapted to cd_player hud.
Thanks!

Also is it able, to set a zone/area for infection. i.e. Cayo island higher chance of getting bit by mosquitos?

yes this track esx status
the status names being used is
hunger, thirst, drugs, drunk, stress,immunesystem, immunelevel

this could be adapted to any resource status.

if you are using already existing ex. hunger, this only track via
esx_status:ontick event,

about the zone i havent tried, but its should be possible.

if math.random(1,100) < 5 and isNightandNotInterior() and not LocalPlayer.state.offlotion and GetNameOfZone(coord.x,coord.y,coord.z) == 'ISHeist' then
	Mosquitos()
end

line 153

Hi, I’m having trouble with the config … I would like to know where to find to modify the thirst rate? And also I don’t know if it’s normal but when the character is thirsty it spams I’m thirsty


when i try to swallow the baraclude i get this error

i have added more config option for chances and etc…

can you make it so it doesnt spamm the crap out of the notifications?

which notification? if its from dehydration. its depends on your esx status tick config

Thirst spamms when it gets to 30

renzu can you send your esx status?

Hello can you help me pls I have this problem while I have the file ox_lib