Skip to content

RedEM-RP/redemrp_status

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

redemrp_status

A status, basic needs system for RedEM:RP Framework

1. Requirements

redemrp_inventory

1. Installation

Add ensure redemrp_status after inventory in server.cfg

2. How to start

You can use build-in client function for items

  • Eat()
  • Drink()
  • Wine()
  • Whisky()
  • Shampan()
  • Beer()
  • Coffe()
  • BoostStamina(10)

or write own code in ClientAction function


 ["coffee"] = {
        hunger = 0,
        thirst = 30,
        action = function(source, name)
            TriggerClientEvent('redemrp_status:Action-' .. name, source)
        end,
        ClientAction = function()
            Coffe()
            BoostStamina(50)
            -- YOU CAN WRITE HERE YOUR OWN CODE
            -- print("water used") etc
        end
    },

You can also use server event to add thirst and hunger from other scripts

TriggerServerEvent('redemrp_status:server:AddHungerThirst', hunger , thirst)
TriggerServerEvent('redemrp_status:server:AddHungerThirst', 0 , 25)

alt text

3. Credits

Ktos93 youngsinatra99

Join discord to get support! - https://discord.gg/FKH4uwb