A status, basic needs system for RedEM:RP Framework
Add ensure redemrp_status
after inventory in server.cfg
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)
Join discord to get support! - https://discord.gg/FKH4uwb