Page cover image

Inventory

Here you can find the installation for cas-redm-inventory script.

About Script

This inventory system is specifically designed for the RedM platform, allowing players to efficiently manage in-game items in an organized manner. It features an intuitive interface that enables quick access and actions.

Installation

Vorp Core Settings

  • Remove the vorp_inventory file you have and install the file you purchased from us.

  • Do not change the inventory folder name "it must be vorp_inventory".

  • Open vorp_metabolism/client/main.lua file and add the code I shared below at the bottom of the page.

If you have vorp_metabolism : Vorp Metabolism /client/main.lua

exports('GetPlayerStatus', function()
    local player = PlayerPedId()
    local pedCoords = GetEntityCoords(PlayerPedId())
    temperature = math.floor(GetTemperatureAtCoords(pedCoords)) .. "°C" --Uncomment for celcius
    return {
        thirst = (tonumber(PlayerStatus["Thirst"]) / 10) or 0,
        hunger = (tonumber(PlayerStatus["Hunger"]) / 10) or 0,
        health = (tonumber(GetEntityHealth(PlayerPedId())) / 600) * 100,
        temperature = temperature
    }
end)

If you have outsider needs : Outsider_needs/custom_client.lua

exports('GetPlayerStatus', function() 
    local player = PlayerPedId()
    local pCoords = GetEntityCoords(player)
    local temperature = math.floor(GetTemperatureAtCoords(pCoords))
    return {
        hunger = GetCurrentHunger(),
        thirst = GetCurrentThirst(),
        temperature = temperature,
        health = (tonumber(GetEntityHealth(player)) / 600) * 100,
    } 
end)

And you are ready!

Vorp Core Configuration

All Config values is same as standard vorp_inventory config.

https://github.com/VORPCORE/vorp_inventory-lua/blob/main/config/config.lua

Last updated