Then import his sql to create the table intended?
sorry i did add his sql but as you said its not validating that the car is mine.
i was thinking it could be my bdatabase making truble
Has anyone found a solution?
I have the same problem, 11 vehicles issue
its very odd
I can’t get the error i’m trying to recieve the message “11 vehicles” it only gives me that when i dont own it or its 11 vehicles there. Make sure you have the newest vehicleshop. And if you udated esx_vehicleshop and this still doesn’t work try redownloading this. I REALLY cant get that message.
server/main.lua rewrite line 40 local plate = vehicleProps[“plate”] to local plate = vehicleProps.plate
Still doesn’t work…
On my server, this fix works well
Yes i think some people use modified garages and the vehicles get saved by plate not ID.
the script does not work because the backup in the database does not do it because I have the old version and it does not register id and not by plate how to make the script works?
You edit the script to your garage / vehicleshop, im using the newest version of esx_vehicleshop where the plate is “ABC 123”
citizen:/scripting/lua/scheduler.lua:379: server/main.lua:97: attempt to index a nil value (field '?') stack traceback: server/main.lua:97: in upvalue 'ref' citizen:/scripting/lua/scheduler.lua:365: in function <citizen:/scripting/lua/scheduler.lua:364> [C]: in function 'xpcall' citizen:/scripting/lua/scheduler.lua:364: in function <citizen:/scripting/lua/scheduler.lua:363> stack traceback: [C]: in function 'error' citizen:/scripting/lua/scheduler.lua:379: in function <citizen:/scripting/lua/scheduler.lua:348>
When someone buy my car i dont get the money and i get this error in logs.
Fixed that newest push download new server.lua.
Yes but the new version of esx_vehicleshop is bug we can not access the menu but a function error!
Maybe I found the solution:
SetTextComponentFormat('STRING') AddTextComponentString(CurrentActionMsg) DisplayHelpTextFromStringLabel(0, 0, 1, -1)
To fix some issues you need to add
function all_trim(s) if s ~= nil then return s:match("^%s*(.-)%s*$") else return nil end end
The issue is if you got a short numberplate with 7 chars insted of default 8 like GTA, the plates wont ever match, because a space is added in the end, the work around is a small trim function.
if all_trim(plate) == all_trim(v.plate) and #Config.VehiclePositions ~= VehiclesForSale then
Why doesnt this happen to me Easy fix do if you lower Z by - 0.985 will fix that.