mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 08:13:21 +00:00
optimizations + more modules
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
local self = ESX.Modules['input']
|
||||
|
||||
self.InitESX()
|
||||
|
||||
Citizen.CreateThread(function()
|
||||
while true do
|
||||
|
||||
|
||||
@@ -454,8 +454,8 @@ end
|
||||
|
||||
self.InitESX = function()
|
||||
|
||||
self.RegisterControl(Input.Groups.MOVE, Input.Controls[Config.InventoryKey])
|
||||
self.On('released', Input.Groups.MOVE, Input.Controls[Config.InventoryKey], function(lastPressed)
|
||||
self.RegisterControl(self.Groups.MOVE, self.Controls[Config.InventoryKey])
|
||||
self.On('released', self.Groups.MOVE, self.Controls[Config.InventoryKey], function(lastPressed)
|
||||
|
||||
if (not ESX.IsDead) and (not ESX.UI.Menu.IsOpen('default', 'es_extended', 'inventory')) then
|
||||
ESX.ShowInventory()
|
||||
|
||||
Reference in New Issue
Block a user