[FREE] PDM Vehicle shop [ESX] otaku_vehicleshop

For using our own pictures via an images folder in the HTLM folder, i see your comment above about what needs updated.

Do we need to also update these lines in the ui.html:

Line 63 -
<img :src=“vehicle.imglink” class=“vehicleImage card-img-top”

Line 39 -
<img :src=“vehicle.imglink” class=“vehicleImage card-img-top”

Or do we need to input the “modelname.png” in the SQL section for “imglink”?

Just been experimenting with things, now that the script has been working with the base game cars for us.

Hi Maffia - you need to rename the resource from otaku_vehicleshop-main, to just otaku_vehicleshop

1 Like

By replacing the .imglink variables with a hardlink and .model it should just pick up the modelname and the imglink in the database could be removed.
From my experience though, having lots of images in the NUI makes the download for your users larger whereas using externally hosted images means they can just stream it when they open the shop. Your choice though :slight_smile:

Thanks a lot for the help, I managed to do everything and so we can already use it. Thank you so much for your fantastic work.

1 Like

the @vehicle_name which I still had to remove for compatibility

Now you need to re-do the LSCustoms/Bennys :wink:

Great release as always!

how do i remove non gta cars from this. i removed them from the data base but the main page bugs out due to not having the vehicles. i dont have any custom imported vehicles on my server.

If you’ve removed them from your database, all you likely need to do now is make sure you set a vehicle to take up the splash screen, I think the category is ltdedition off the top of my head.
I need to remove all the custom cars from the included database, that’s my bad, I was a lazy dev and just copied my personal servers DB down - I’ll try and get that rectified soonish!

all good man just trying to make a base server thats visually appealing this was the best free vehicle shop ive found. great work!’

1 Like

Will it work with add on cars?

Yes it should work fine, I had lots of custom cars in my own server :slight_smile:

i cant buy any vehicle he said i dont have enough money, but i have enough… Screenshot by Lightshot

I believe the money is charged from your bank account - is the money banked?

When UI Opens

Make sure you’ve added the imglink column to your vehicles table

I used your sql table "otaku_vehicleshop.sql"

can u upload the sql for owned vehicles, becouse i cant store my cars…

This is my current structure;

DROP TABLE IF EXISTS `owned_vehicles`;
CREATE TABLE IF NOT EXISTS `owned_vehicles` (
  `vehicle` longtext NOT NULL,
  `owner` varchar(60) NOT NULL,
  `stored` tinyint(1) NOT NULL DEFAULT '1' COMMENT 'State of the vehicle',
  `garage_name` varchar(50) NOT NULL DEFAULT 'Garage_Centre',
  `houseid` int(11) NOT NULL DEFAULT '0',
  `pound` tinyint(1) NOT NULL DEFAULT '0',
  `vehiclename` varchar(50) DEFAULT NULL,
  `plate` varchar(50) NOT NULL,
  `type` varchar(10) NOT NULL DEFAULT 'car',
  `job` varchar(50) DEFAULT NULL,
  `photo` varchar(256) NOT NULL DEFAULT '',
  PRIMARY KEY (`plate`),
  KEY `vehsowned` (`owner`),
  KEY `carOwner` (`owner`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1 Like

thank u :slight_smile:

Did you have a fix for this?