RedEM-RP / redemrp_status

A status, basic needs system for RedEM:RP Framework
GNU General Public License v3.0
4 stars 5 forks source link

Latest Documentation

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

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