Wollffus / redemrp_status

A status, basic needs system for RedEM:RP Framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:AddAmount', hunger , thirst)
TriggerServerEvent('redemrp_status:AddAmount', 0 , 25)

alt text

3. Credits

Ktos93 youngsinatra99

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

About

A status, basic needs system for RedEM:RP Framework

License:GNU General Public License v3.0


Languages

Language:Lua 77.9%Language:HTML 11.1%Language:CSS 6.9%Language:JavaScript 4.0%