[FREE] PDM Vehicle shop [ESX] otaku_vehicleshop

Do you have any errors in F8 or server console? I think someone else had this issue too - I think they were trying to run this and esx_vehicleshop and they were conflicting with each other, he fixed it by removing the other resource.

No errors. But I might try later

I am having the same issue. cant scroll past the first page of each menu - and cant close out via top button. Hitting escape works though.

However, i noticed when i stop esx_vehicleshop to try and run this isolated, it also stops esx_ambulancejob… additionally, if i remove esx_vehicleshop from the start configue, it somehow still turns on because of esx_ambulancejob… having everything off, and then starting esx_ambulance, turns vehicleshop back on. Super confused.

There’s a good chance that esx_ambulancejob has esx_vehicleshop as a dependency - you could remove it from the dependencies in its __resource.lua and switch any functions that point at esx_vehicleshop to otaku_vehicleshop - they should be compatible I believe.

I appreciate the response! Looking into the Ambulance job more you are correct. strange that the job references vehicle shop. I removed the callouts in the Ambulance job and that got rid of the weird clash I was getting, but still cant hit the next page button in the menu for the dealership :/.

Turns out i do get an error in my sequal. Not sure if this is why i cant scroll to more pages or click the X button… heres the error:

[ERROR] [MySQL] [otaku_vehicleshop] An error happens on MySQL for query “INSERT INTO owned_vehicles (owner, plate, vehicle, vehiclename) VALUES (‘steam:(RETRACTED)’, ‘QJS 1845’, ‘{“modSteeringWheel”:-1,“windowTint”:-1,“modFrontWheels”:-1,“modDial”:-1,“modAerials”:-1,“modAPlate”:-1,“modFender”:-1,“dirtLevel”:12.0,“pearlescentColor”:7,“modBackWheels”:-1,“modXenon”:false,“modFrame”:-1,“modLivery”:-1,“modRearBumper”:-1,“neonColor”:{“1”:255,“2”:0,“3”:255,“n”:3},“modFrontBumper”:-1,“modSuspension”:-1,“modSpoilers”:-1,“modTrimB”:-1,“modSeats”:-1,“model”:-349601129,“modOrnaments”:-1,“modTank”:-1,“modRightFender”:-1,“engineHealth”:1000.0,“modAirFilter”:-1,“modEngine”:-1,“modWindows”:-1,“fuelLevel”:29.0,“modSideSkirt”:-1,“modStruts”:-1,“modTrimA”:-1,“modHood”:-1,“color1”:1,“modHorns”:-1,“modTransmission”:-1,“modExhaust”:-1,“color2”:0,“modDashboard”:-1,“modEngineBlock”:-1,“plateIndex”:3,“neonEnabled”:[false,false,false,false],“modPlateHolder”:-1,“modHydrolic”:-1,“modTrunk”:-1,“bodyHealth”:1000.0,“modArmor”:-1,“modRoof”:-1,“modBrakes”:-1,“modGrille”:-1,“modTurbo”:false,“modDoorSpeaker”:-1,“wheels”:4,“plate”:“QJS 1845”,“modArchCover”:-1,“modSpeakers”:-1,“modVanityPlate”:-1,“modShifterLeavers”:-1,“tyreSmokeColor”:{“1”:255,“2”:255,“3”:255,“n”:3},“modSmokeEnabled”:false,“extras”:[],“wheelColor”:156}’, ‘Bifta’)”: ER_BAD_FIELD_ERROR: Unknown column ‘vehiclename’ in ‘field list’

I injected your sequel file twice to make sure it had all your fields.

Ohh my bad dude, you need to add a column to your owned_vehicles table called vehiclename, just make it a string, that should fix your SQL error

again - your responses are super quick, that is greatly appreciated! Gotta say I feel pretty dumb it even says at the bottom of the SQL error that its the vehiclename being the issue. ugh, long night.

This fixed the error which is great, i however still cant use the arrow button or the x button :/. I dig deeper tomorrow… are there any extra dependencies this needs to get the NUI to work?

Off the top of my head, no. I’m pretty sure it’s just basic stuff that’s included through CDN, so jquery & VueJS.

I’ll try and take a look soon to see if I can spot anything obvious, you’re not the first person to tell me they’ve had that issue, not sure how or if others resolved it though.

it wont let me scroll or click different pages :frowning:

Heyy dude, do you have any F8 console errors or any errors in your server console?
You could try rebooting the resource while in-game to make sure you don’t miss any startup errors too.

I’ve just pushed an update that should fix the non-responsive UI issues.

2 Likes

i got no error, when did u last update it? and thanks for the response :slight_smile:

Just 10-20 minutes ago :slight_smile:

Working fine since the last update. Thanks!

1 Like

Thanks for the confirmation dude :slight_smile:

2 Likes

works great now thanks! :slight_smile:

1 Like

Perfect! All is working now. Appreciate the release, help, and follow-up! 10/10!

1 Like

Please help! i don’t know what the problem might be…

i don’t understand so much about this but i will try