@es_extended/client/functions.lua:1010: attempt to call a nil value (field '?')

I’m trying to fix a problem with buying water and bread from a shop and everytime i purchase the water i get this error in the f8 menu.

The line in question is this:

RegisterNetEvent('esx:serverCallback')
AddEventHandler('esx:serverCallback', function(requestId, ...)
1010-->	ESX.ServerCallbacks[requestId](...)
	ESX.ServerCallbacks[requestId] = nil
end)
1 Like

Im pretty sure there is nothing wrong here, error will be where you trigger this event, send a picture of the error.

Yea I thought the samething but i fixed the first error it was giving me originally then tried it again and it only gave me this error but here it is:

Only gives me the error when i try to buy something. I can buy med kits, bandages, repair kits, and ammo just fine but when i try to buy water or bread or anything the moment i go to the register to purchase it. it throws this error, takes my money, but doesn’t give me the product

If it works for a certain items, and not fot the others, there will be something wrong with your shop script. Can you share the piece of code from the schop script?

Actually I think I had just found the problem. You were right, the shop script shows item as ‘Bread’ and in sql to identify it it is ‘bread’ with a lowercase b so I went in and edited all of it and now all my items work. Thanks for the help though

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.