Security HUD
System Watchdog
×
Threads Scanned
-- / --
SYS. LOAD --%
AI SHIELD ACTIVE
DMCA Policy
×

📋 DMCA Compliance

This platform and community fully complies with the Digital Millennium Copyright Act (DMCA) and international copyright laws. We take all copyright protection seriously.

🛡️ Copyright Protection

If you believe a posted item belongs to you or violates your copyright, you may file a DMCA takedown request through our official channels. Upon receiving a valid claim, the infringing content will be removed within 24 hours.

What's new
×
Fiveguard

patou

Member
Joined
May 20, 2022
Messages
4
Reaction score
3
Points
156
Location
Belgique
Bonjour les membres du Forum Vag, je vais partager avec vous un très bel inventaire, le script ne m'appartient pas.




*** Texte caché : ne peut pas être cité. ***

ALTER TABLE `users` ADD COLUMN IF NOT EXISTS `hotbar` LONGTEXT NULL;


#1064 - Erreur de syntaxe près de 'IF NOT EXISTS `hotbar` LONGTEXT NULL' à la ligne 1
 

mahmoudwehby

Gold Elite
Joined
Dec 30, 2021
Messages
80
Reaction score
40
Points
176
Location
liberia
can any one help to add chezza inventory to allhousing inventory plz
thanks
what i should add here

OpenInventory = function()
if Config.UsingESX then
if not Config.UsingDiscInventory then
TriggerEvent('esx_inventoryhud:eek:penInventory', {
type = 'property',
owner = "allhousing-"..InsideHouse.Id
})
else
TriggerEvent('disc-inventoryhud:eek:penInventory', {
type = 'allhousing',
owner = "allhousing-"..InsideHouse.Id
})
end
else
-- NON ESX USERS FILL IN HERE
end
end

also the script have property file to add it in esx_inventoryhud ( chezza V3 )

local isPlayerSafe = false
local isMotel = false
local isHousing = false
RegisterNetEvent("esx_inventoryhud:eek:penPropertyInventory")
AddEventHandler("esx_inventoryhud:eek:penPropertyInventory", function(data, playerSafe, playerMotel, allHousing)
if playerSafe then isPlayerSafe = playerSafe; else isPlayerSafe = false; end
if playerMotel then isMotel = playerMotel; else isMotel = false; end
if allHousing then isHousing = allHousing; else isHousing = false; end
setPropertyInventoryData(data)
openPropertyInventory()
end)
function refreshPropertyInventory()
if isPlayerSafe then
ESX.TriggerServerCallback('playersafes:GetSafeInventory', function(inventory)
setPropertyInventoryData(inventory);
end,isPlayerSafe.safeid)
elseif isMotel then
ESX.TriggerServerCallback('motels:getInventory', function(inventory)
setPropertyInventoryData(inventory);
end,isMotel.zone,isMotel.door)
elseif isHousing then
ESX.TriggerServerCallback('Allhousing:GetInventory', function(inventory)
setPropertyInventoryData(inventory);
end,isHousing)
else
ESX.TriggerServerCallback("esx_property:getPropertyInventory",function(inventory)
setPropertyInventoryData(inventory)
end,ESX.GetPlayerData().identifier)
end
end
function setPropertyInventoryData(data)
items = {}
local cashMoney = data.cash
local blackMoney = data.blackMoney
local propertyItems = data.items
local propertyWeapons = data.weapons
if blackMoney > 0 then
local accountData = {
label = _U("black_money"),
count = blackMoney,
type = "item_account",
name = "black_money",
usable = false,
rare = false,
limit = -1,
canRemove = false
}
table.insert(items, accountData)
end
if cashMoney and cashMoney > 0 then
local accountData = {
label = _U("cash"),
count = cashMoney,
type = "item_money",
name = "cash",
usable = false,
rare = false,
limit = -1,
canRemove = false
}
table.insert(items, accountData)
end
for i = 1, #propertyItems, 1 do
local item = propertyItems
if item.count > 0 then
item.type = "item_standard"
item.usable = false
item.rare = false
item.limit = -1
item.canRemove = false
table.insert(items, item)
end
end
for i = 1, #propertyWeapons, 1 do
local weapon = propertyWeapons
if propertyWeapons.name ~= "WEAPON_UNARMED" then
table.insert(
items,
{
label = ESX.GetWeaponLabel(weapon.name),
count = weapon.ammo,
limit = -1,
type = "item_weapon",
name = weapon.name,
usable = false,
rare = false,
canRemove = false
}
)
end
end
SendNUIMessage(
{
action = "setSecondInventoryItems",
itemList = items
}
)
end
function openPropertyInventory()
loadPlayerInventory()
isInInventory = true
SendNUIMessage(
{
action = "display",
type = "property"
}
)
SetNuiFocus(true, true)
end
RegisterNUICallback(
"PutIntoProperty",
function(data, cb)
if IsPedSittingInAnyVehicle(playerPed) then
return
end
if type(data.number) == "number" and math.floor(data.number) == data.number then
local count = tonumber(data.number)
local isWeapon = false
if data.item.type == "item_weapon" then
isWeapon = true
count = GetAmmoInPedWeapon(PlayerPedId(), GetHashKey(data.item.name))
end
if isPlayerSafe then
TriggerServerEvent("playersafes:putItem", ESX.GetPlayerData().identifier, data.item.type, data.item.name, count, isPlayerSafe.safeid, isWeapon)
elseif isMotel then
TriggerServerEvent("motels:putItem", ESX.GetPlayerData().identifier, data.item.type, data.item.name, count, isMotel.zone, isMotel.door, isWeapon)
elseif isHousing then
TriggerServerEvent("Allhousing:putItem", isHousing, data.item.type,data.item.name,count)
else
TriggerServerEvent("esx_property:putItem", ESX.GetPlayerData().identifier, data.item.type, data.item.name, count)
end
end
Wait(150)
refreshPropertyInventory()
Wait(150)
loadPlayerInventory()
cb("ok")
end
)
RegisterNUICallback(
"TakeFromProperty",
function(data, cb)
if IsPedSittingInAnyVehicle(playerPed) then
return
end
if type(data.number) == "number" and math.floor(data.number) == data.number then
if isPlayerSafe then
TriggerServerEvent("playersafes:GetItem", ESX.GetPlayerData().identifier, data.item.type, data.item.name, tonumber(data.number), isPlayerSafe.safeid)
elseif isMotel then
TriggerServerEvent("motels:getItem", ESX.GetPlayerData().identifier, data.item.type, data.item.name, tonumber(data.number), isMotel.zone, isMotel.door)
elseif isHousing then
TriggerServerEvent("Allhousing:GetItem", isHousing, data.item.type,data.item.name,tonumber(data.number))
else
TriggerServerEvent("esx_property:getItem", ESX.GetPlayerData().identifier, data.item.type, data.item.name, tonumber(data.number))
end
end
Wait(150)
refreshPropertyInventory()
Wait(150)
loadPlayerInventory()
cb("ok")
end
)
 
Last edited:

Fronastico

Bronze Elite
Joined
May 6, 2022
Messages
20
Reaction score
2
Points
166
Location
China
My inventory doesn't appear, just blur and the mouse. Someone can help me?
 
Top