Not working on me :’(
I have this problem i don’t can buy a item
SCRIPT ERROR: @xnVending/server/server.lua:34: attempt to index a nil value (local ‘targetItem’)
TriggerServerCallback (@es_extended/server/functions.lua:33)
handler (@es_extended/server/common.lua:89)
Pressing the key does not give the object but neither does it give any error
Make sure you have your config.Framework set correctly and have added all the items you are using into your database.
Did you check both your client and server console?
I have a fresh installed ESX Server where we test before we install stuff to our main server. Unfortunately the script doesn’t work. Front of the machine appears in the below right corner the drink and price, but I cannot do anything to buy it. I tried with ESX and NewESX, even standalone, it doesn’t work. Any suggestions? Thanks in advance!
some vending machines get stuck when starting the animation thus leaving the rest of the machines that work blocked
machines that work
prop_vend_soda_01
prop_vend_soda_02
prop_vend_snak_01
machines that do not work
(They get caught when you give them to buy and it is time for the animation)
prop_vend_water_01
prop_vend_coffe_01
prop_vend_fags_01
Cheers for me soda machines work perfectly but it is the food machine that does not want to work the text appears but nothing happens behind someone would have the solution please.
It’s okay, I managed to fix the problem.
Hey there! Huge thanks for the Standalone Version! I got one Problem i wanted to place the Weed Vending Machine but there is no ymap included and it seems that you cant do anything with the .ytyp file in CodeWalker. Maybe the file is corrupt? or iam just an Idiot.
The E does not appear to buy, numbers appear and when I press them it does nothing
I changed my framework to Standalone in the config, and then I can use it with the numbers, no need to use E… What I dont get yet is how I make the items, with peanuts and so on 
But, I noticed I never get the item in my inventory, is this a bug when using “Standalone”? because can see its not mentioned in the coding else than in config
Edit. I fixed it by changing the “ESX” or “NewESX” to “standalone” or “NewEsx” and now it works. THANKS for totally awesome script, I enjoy it very much. (I run on essentialmode)
this is for vrp you are using es_extended
Hi Rasmus,
How did you manage to get the items in your inventory?
I modified in Config.lua:
Config.Framework = “NewEsx”
(I have also tested with Config.Framework = “standalone”)
The animation plays well, but nothing in the inventory, I have created the items in the DB.
I have the Same Problem;
SCRIPT ERROR: @xnVending/server/server.lua:35: attempt to call a nil value (field ‘canCarryItem’)
TriggerServerCallback (@es_extended/server/functions.lua:33) handler (@es_extended/server/common.lua:88)
We testet ESX and NEwESX and finaly the standalone.
Standalone Works, but the Char get no items (only animation works)
ESX and NEW ESX brings errors.
Any Idea?
the es_extended hud work for vrp or just esx ?
Creating script environments for xnVending
Failed to load script @vrp/lib/utils.lua.
Started resource xnVending
how to fix ?
It’s a warning, not an error. It’s fine.
It’s ok but the scripts don’t work for me as soon as I get close to the machine I write what I write off
SCRIPT ERROR: @xnVending/server/server.lua:34: attempt to index a nil value (local ‘targetItem’)
TriggerServerCallback (@es_extended/server/functions.lua:160)
handler (@es_extended/server/common.lua:71)
fix?