Skip to content

A modified version of Discworld's inventoryhud resource; made for Ascent Gaming.

Notifications You must be signed in to change notification settings

ger-pakon/inventoryhud

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ascent Gaming Modified InventoryHUD

Ascent Changes

ESX Compatibility

This mod has not been updated to support the WEIGHT update by ESX. It also won't for some time. Please use this previous version of ESX.

Reasoning for this is, alot of mods has not been updated and if I force mine to update no one can use mine and their old scripts.

Run this SQL if you see action impossible errors ALTER TABLE USER_INVENTORY CHANGE COLUMN count count INT(10) UNSIGNED NOT NULL

BETA

This resource is in open beta. Please report all issues to my Github or on Discord

Stream

I stream on Twitch. Come hang out and learn from me!

Download

Download available on my repo

Credit

Thank you greatly to Alzar_tv for providing me with your front-end for mythic_inventory

  • ESX_InventoryHUD (Inspiration)

Description

Adds the following features

  • Inventory Hud with Slots Image from Gyazo Image from Gyazo
  • Drops with HUD Image from Gyazo Image from Gyazo
  • Pay with HUD
  • Give with HUD
  • Hot keys 1 - 5
  • Shops with HUD Image from Gyazo
  • Trunks with HUD Image from Gyazo
  • Glovebox with HUD Image from Gyazo
  • Weapons as Items Image from Gyazo

Explanation

Weapons as Items

Weapons are read from the items table with the prefix WEAPON_. Add all usable weapons into the items table with their limit. Ammo for each weapon is stored in disc_ammo table however I do not support addition of ammo yet.

Hot Keys

The weapon wheel is disabled for the use of hot keys. Weapons being used as items is needed in this case

Installation

Add to resource folder [esx] or [disc]

Execute SQL : disc-inventoryhud.sql

Start using start disc-inventoryhud

Config

Config.OpenControl = 289
Config.TrunkOpenControl = 47

Config.Shops = {
    ['My Shop Of Awesome Things'] = {
        coords = vector3(44.38, -1746.76, 29.5),
        items = {
            { name = "bread", price = 100, count = 10 },
            { name = "idcard", price = 1000, count = 1 },
            { name = "energy", price = 1000, count = 1 },
        }
    },
    ['My Shop Of Dark Things'] = {
        coords = vector3(44.38, -1742.76, 29.5),
        items = {
            { name = "weed", price = 10000, count = 10 },
            { name = "WEAPON_SNSPISTOL", price = 10000, count = 10 },
        }
    }
}

Editing CSS

The source CSS is written in SASS, which is a superset of the CSS3 syntax. Compiling this will require some form of a SASS compiler to compile it into valid vanilla CSS that a browser (or in this case, NUI/CEF) can understand and parse. Can easily get a Visual Studio Code extension to achieve this, a good one to try is Live SASS Compiler, once installed add the below to your VSCode config and it'll compile the SCSS files into CSS and put it in the correct location.

"liveSassCompile.settings.formats":[{
        "format": "compressed",
        "extensionName": ".min.css",
        "savePath": "~/../"
    },
]

Requirements

Image from Gyazo

About

A modified version of Discworld's inventoryhud resource; made for Ascent Gaming.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 42.4%
  • JavaScript 24.4%
  • CSS 24.1%
  • TSQL 6.7%
  • HTML 2.4%