Coder Social home page Coder Social logo

invhud's Introduction

Invhud

ESX_InventoryHUD rework THIS SCRIPT IS NOT TESTED NOR SUPPORTED FOR ESX2.0 AND ABOVE OR ANY NON GITHUB TAG FROM THE ESX-ORG LINK HERE: https://github.com/esx-framework/es_extended/tags

IF YOU HAVE NOT REMOVED ESX's STANDARD INVENTORY EVENT, DO SO BY COMMENTING(THE TWO DASHES IN FRONT LIKE DISPLAYED) OR DELETING THIS THREAD FROM YOUR ESX CLIENT/MAIN.LUA

-- Citizen.CreateThread(function()
	-- while true do
		-- Citizen.Wait(0)

		-- if IsControlJustReleased(0, 289) then
			-- if IsInputDisabled(0) and not isDead and not ESX.UI.Menu.IsOpen('default', 'es_extended', 'inventory') then
				-- ESX.ShowInventory()
			-- end
		-- end
	-- end
-- end)

THIS THREAD CAN BE FOUND STARTING ON THE FOLLOWING LINES FOR UNEDITED VERSIONS OF THE PROCEEDING ESX VERSION: LINE 462 FOR ESX1.0(I HAVE/WILL NOT CHECK EACH SEPARATE 1.0.TAG), LINE 480 FOR ESX1.1, LINE 444 FOR ESX1.2, LINE 438 FOR ESXV1-FINAL.

OPEN KEY IS A KEY BIND. AN IN GAME KEY BIND. IF YOU RAN THE SCRIPT WITHOUT CONFIGURING IT PROPERLY, OR IF YOU HAVE ANY CLIENTS WHO ALREADY HAVE THIS KEY MAPPED, THE ONLY WAY TO ADJUST A KEY BIND IS IN YOUR KEY BINDS IN GAME.

POLICEJOB HANDCUFF EVENT CONFIGURED TO AUTO-LOCK INVENTORY, ANY OTHER PLACES YOU WISH TO LOCK/UNLOCK A PLAYERS ABILITY TO OPEN THEIR INVENTORY USE THE EVENT

TriggerEvent('invhud:lockInv', false)

TO LOCK THEM OUT OF OPENING THEIR INVENTORY, USE THE EVENT

TriggerEvent('invhud:lockInv', true)

TO UNLOCK THEIR ABILITY TO OPEN THEIR INVENTORY

** MOST HTML WORK DONE BY PRIOR DEVELOPERS, ALL IMAGES COLLECTED BY PRIOR DEVELOPERS, MAIN FORK FROM SUKURABU SHOPS ESX_INVENTORYHUD **

Major rework on inventoryhud. Will no longer support individual inventorytype.lua files (i.e. trunk.lua, property.lua, player.lua). Code condensed specifically for my development.

If wishing to have weapons count towards player weight you Need to add

TriggerEvent('invhud:removeWeight', xPlayer.source, pickup.name, pickup.count)

To your es_extended server main.lua 'esx:onPickup' event inside the

if success then
	
end

section

Don't attempt to call from server. To open a property inventory use

local propertyID = 'I Must Be A String Unique To The Property' -- REQUIRED
local propertyShell = 'shell_name_for_property' -- NOT REQUIRED (FOR USE WITH SHELL HOUSING TO GIVE WEIGHT LIMITS BASED ON SHELL)
TriggerEvent('invhud:openPropertyInv', propertyID, propertyShell)

To open a safe inventory use

local safeID = 'I Must Be A String Unique To The Safe'
TriggerEvent('invhud:openSafeInv', safeID)

YOU WILL NEED TO REPLACE ANY ESX_INVENTORYHUD EVENTS IN PLAYERSAFES WITH THE PROPER INVHUD EVENT YOU CAN OPEN ANY INVENTORY OUTSIDE OF INVHUD WITH THESE TWO EVENTS

Weapon attachments only store across inventories for ESX 1.1 and ABOVE. ESX 1.0 DOES NOT SUPPORT ATTACHMENTS

I CAN BE CONTACTED HERE - https://discord.com/invite/8afXRrA OR DIRECTLY WITH ID SpindleScripts#0001 My website: https://spindlescripts.com

My ko-fi links: https://ko-fi.com/spindlescripts ko-fi

invhud's People

Contributors

jiminykroket avatar joeszymkowiczfivem avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.