LRP-fastfood

If I have the price column and my database is fine, only when I approach the refigerator where you take out the implements for kitchens with the menu of your inventoryhud nothing comes out

esta raro que te pase eso, en mi localhost y mi server funciona a la perfeccion.

algo estas pasando por alto, dime usas sistema de pesos?? de extended.??

si presionas E y nno te sale el inventario entonces debe ser un problema, en client

fijate bien en el lado del config y cliente.

o mejor, pasa o adjunta tu client y server para ver si lo estas haciendo bien.

it’s weird that that happens to you, in my localhost and my server works perfectly.

Are you missing something, tell me you use a weight system? of extended.

if you press E and you don’t get the inventory then it must be a problem, in client

Look closely at the config and client side.

or better, pass or attach your client and server to see if you are doing well.

hello when I try to enter the refigerator, it does not appear to press E to buy the implements, and I throw this error when I press E

here the error

and when I restart esx_inventoryhud he lets me see the articles, but he doesn’t let me pass them to my inventory and he still doesn’t appear to press the E, just press it and it opens

by the way the refigerator flies out on that hahaha mapping

main.lua (15.2 KB) shop.lua (14.4 KB)

I did not put it I forgot … there I pass it to you

Go to “shop.lua” and look for this code:

local Licenses = {}

and below place:

Citizen.CreateThread(function()
    while ESX == nil do
        TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
        Citizen.Wait(0)
    end

    while ESX.GetPlayerData().job == nil do
        Citizen.Wait(10)
    end

    PlayerData = ESX.GetPlayerData()

end)


RegisterNetEvent('esx:playerLoaded')
AddEventHandler('esx:playerLoaded', function(xPlayer)
    ESX.PlayerData = xPlayer
end)

RegisterNetEvent('esx:setJob')
AddEventHandler('esx:setJob', function(job)
    ESX.PlayerData.job = job
end)
1 Like

until there everything perfect already opens up my inventory well

but now when I move an item to my inventory, it doesn’t let me save it or buy it and I get this error

by the way you are missing this article in the item sql

(‘brostercrudo’, ‘brostercrudo’, 1, 0, 1, 0),

do you use esx_extended with weight?

as far as I know not! Do you have any version that you recommend?

although it looks that in the other stores, added in the inventoryhud that you recommend all the items work for me perfect when buying, only in the hamburguezeria does not work

please you can upload your “shop.lua”, “main.lua”, “server.lua” to check if you are doing it correctly.

1 Like

shop.lua (14.9 KB) main.lua (12.0 KB) main.lua (15.2 KB)

mira en he visto el problema, pusiste este código en el lugar que no es

	for k, v in pairs(Config.Shops.FastFood.Locations) do
            if GetDistanceBetweenCoords(coords, Config.Shops.FastFood.Locations[k].x, Config.Shops.FastFood.Locations[k].y, Config.Shops.FastFood.Locations[k].z, true) < 1.7 then
                DrawText3Ds(vector3(Config.Shops.FastFood.Locations[k].x, Config.Shops.FastFood.Locations[k].y, Config.Shops.FastFood.Locations[k].z + 1.0), "Presiona [E] para abrir la tienda", 0.35)
      ESX.Game.Utils.DrawText3D(vector3(Config.Shops.YouTool.Locations[k].x, Config.Shops.YouTool.Locations[k].y, Config.Shops.YouTool.Locations[k].z + 1.0), "Presioma [E] para abrir la tienda", 0.4)
        
          end
        end

debes ponerlo abajo en el otro citizen.thread.

en la linea 354-353 donde no hay nada. y comenta el esx.game.utils

debería quedarte así.

https://gyazo.com/7ba12266661b8104722a495d675c0e5d

si usas el extended actualizado quizás te salga error en el f8 sobre “.limit” trata de buscar una versión de esx_extended antes del sistema de los “pesos”

ya que en el inventario busca o reconoce en la table “items” la columna “limit” y en el nuevo extended tiene " weight".

------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------

look at I’ve seen the problem, you put this code in the place that is not

for k, v in pairs (Config.Shops.FastFood.Locations) do
            if GetDistanceBetweenCoords (coords, Config.Shops.FastFood.Locations [k] .x, Config.Shops.FastFood.Locations [k] .y, Config.Shops.FastFood.Locations [k] .z, true) <1.7 then
                DrawText3Ds (vector3 (Config.Shops.FastFood.Locations [k] .x, Config.Shops.FastFood.Locations [k] .y, Config.Shops.FastFood.Locations [k] .z + 1.0), "Press [E ] to open the store ", 0.35)
      ESX.Game.Utils.DrawText3D (vector3 (Config.Shops.YouTool.Locations [k] .x, Config.Shops.YouTool.Locations [k] .y, Config.Shops.YouTool.Locations [k] .z + 1.0 ), "Presioma [E] to open the store", 0.4)
        
          end
        end

you must put it down in the other citizen.thread.

on line 354-353 where there is nothing. and comment on esx.game.utils

It should stay that way.

https://gyazo.com/7ba12266661b8104722a495d675c0e5d

if you use the updated extended you may get error in f8 on “.limit” try to find a version of esx_extended before the “weights” system

since in the inventory it looks for or recognizes in the table “items” the column “limit” and in the new extended one it has “weight”.

Thanks a lot


until there and everything perfect, I get to enter the store and enter well, but when I’m going to move an object, that is to buy, I branded this error on the side of the inventoryhud sv

ya te lo dije, puede ser por la table de items y la columna “limit”

mandame una foto de tu table de items. si tienes una columna llamada “weight” ahi esta el problema.

I already told you, it may be because of the table of items and the “limit” column

Send me a picture of your table of items. If you have a column called “weight” there is the problem.

We do not use the weight system.


efectivamente :frowning: que puedo hacer ahi?

hello I already changed the table of items eliminating the weight column, and change the version of es_extended that does not handle that column and I present the same error :frowning:

That is not the solution, you have to find a version before the change of “weight”

Any version you can recommend me?

A version before the weight …

if that version is the one that goes down and the sql does not bring weight, and even remove the weight column from the previous version of es_extended and follow the error,
I would say that if I were putting problem, the previous extended version, and the one of now still lets me buy in stores, liquor stores and other etc,
I would believe that something is missing in the server part of the fastfood inventoryhud

something you are doing wrong, if you would not have private because some error comes out, but it only happens to you :slight_smile:

I already gave you, like my partner, some solutions … if it doesn’t work, I would recommend you not to use it.