[RELEASE] renzu_vehicleshop | Advanced Vehicle Shop

Forget about it, somehow I got a duplication of vehicles on my DB. Sorry for troubling

No worries glad you fixed it

I dont know why, when i buy car and want to park it on Garage A or Private Garage there’s notify thats Vehicles is not my property image

And doesnt want to save in my database,


i think i did everything okay but mby u can help me with this bcs this resource is Fcking Awesome

Check sql error probably missing something columns or check sql limits of varchar if recently used steam identifier. This is the most common error of sql

hello, how can i fix it?

When changing or creating new shop

Table identifier and parameter name must be the same

can you explain it more, please

VehicleShop = {

    ['pdm'] = { -- same with name

        name = "pdm", --LEGION

like this.
can you show me your config?

Config = {}
Config.Locale = “en”
Config.Mysql = ‘ghmattisql’ – “ghmattisql”, “mysql-async”, “oxmysql”
Config.framework = ‘QBCORE’ – ESX or QBCORE
Config.UseRayZone = false – unrelease script https://github.com/renzuzu/renzu_rayzone
Config.UsePopUI = true – Create a Thread for checking playercoords and Use POPUI to Trigger Event, set this to false if using rayzone. Popui is originaly built in to RayZone – DOWNLOAD GitHub - renzuzu/renzu_popui
Config.Quickpick = true – if false system will create a garage shell and spawn every vehicle you preview
Config.EnableTestDrive = true
Config.PlateSpace = true – enable / disable plate spaces (compatibility with esx 1.1?)
Config.SaveJob = true – this config is to save the value to owned_vehicles.job column
Config.Licensed = false – Enable Driver Licensed Checker
Config.DisplayCars = true – enable display of cars
Config.Marker = false – use draw marker and Iscontrollpress native , popui will not work if this is true
Config.CustomImg = true – if true your Config.CustomImgColumn IMAGE url will be used for each vehicles else, the imgs/uploads/MODEL.jpg
Config.CustomImgColumn = ‘imglink’ – db column name
Config.RgbColor = true – your framework or garage must support custom colors ex. GitHub - renzuzu/renzu_garage: FIVEM - Garage HUD

–EXTRA
Config.UseArenaSpawn = true – will use custom location for spawning vehicle in quickpick == false
– MAIN
VehicleShop = {
[‘pdm’] = { – same with name
name = “pdm”, --LEGION
title = “PDM Vehicle Shop”,
icon = ‘https://i.imgur.com/05SLYUP.png’,
type = ‘car’,
job = ‘all’,
default_garage = ‘A’,
Dist = 4, – distance (DEPRECATED)
Blip = {color = 38, sprite = 595, scale = 0.9},
shop_x = -35.469879150391,
shop_y = -1100.3621826172,
shop_z = 26.422359466553, – coordinates for this garage
spawn_x = -32.283363342285,
spawn_y = -1091.0841064453,
spawn_z = 25.749485015869,
heading = 340.23065185547, – Vehicle spawn location,
displaycars = {
[1] = {model = ‘jester3’, value = 100000, coord = vector4(-47.427722930908,-1101.3747558594,25.714616775513,341.64694213867)},
[2] = {model = ‘fmj’, value = 1000000, coord = vector4(-44.736125946045,-1094.1976318359,25.748092651367,158.2547454834)},
[3] = {model = ‘adder’, value = 1000000, coord = vector4(-40.32751083374,-1095.6105957031,26.009906768799,158.58676147461)},
[4] = {model = ‘zentorno’, value = 1000000, coord = vector4(-43.318450927734,-1102.1627197266,25.758722305298,340.29724121094)},
}
},

['Police Vehicle Shop'] = { -- same with name
    name = "Police Vehicle Shop", --MRPD police shop
    title = "Police Vehicle Shop",
    icon = 'https://i.imgur.com/t1OPuVL.png',
    job = 'police',
    type = 'car',
    default_garage = 'Police Garage',
    Dist = 3, -- distance (DEPRECATED)
    Blip = {color = 38, sprite = 662, scale = 0.9},
    shop_x = 456.89453125,
    shop_y = -1020.8922729492,
    shop_z = 28.290912628174, -- coordinates for this garage
    spawn_x = 449.27224731445,
    spawn_y = -1025.3255615234,
    spawn_z = 27.905115127563,
    heading = 2.6015937328339, -- Vehicle spawn location
    shop = { -- if not vehicle is setup in Database SQL, we will use this
        {shop='Police Vehicle Shop',category='Police Sedan',stock=50,price=100000,model='police',name="Police Car", grade = 1},
        {shop='Police Vehicle Shop',category='Police Sedan',stock=50,price=100000,model='police2',name="Police 2", grade = 1},
        {shop='Police Vehicle Shop',category='Police Sedan',stock=50,price=100000,model='police4',name="Police 4", grade = 3},
        {shop='Police Vehicle Shop',category='Police SUVs',stock=50,price=100000,model='police3',name="Police SUV",grade = 5},
    },
},

-- BOAT shop
['Yacht Club Boat Shop'] = { -- same with name
    name = "Yacht Club Boat Shop", --LEGION
    type = 'boat', -- type of shop
    title = "Yacht Club Boat Shop",
    icon = 'https://i.imgur.com/62bRdH6.png',
    job = 'all',
    default_garage = 'Boat Garage A',
    Dist = 7, -- distance (DEPRECATED)
    Blip = {color = 38, sprite = 410, scale = 0.9},
    shop_x = -812.87133789062,
    shop_y = -1407.4493408203,
    shop_z = 5.0005192756653, -- coordinates for this garage
    spawn_x = -818.69775390625,
    spawn_y = -1420.5775146484,
    spawn_z = 0.12045155465603,
    heading = 178.27006530762, -- Vehicle spawn location
    shop = { -- if not vehicle is setup in Database SQL, we will use this
        {shop='Yacht Club Boat Shop',category='Normal Boat',stock=50,price=50000,model='dinghy',name="Dinghy"},
        {shop='Yacht Club Boat Shop',category='Normal Boat',stock=50,price=100000,model='dinghy2',name="Dinghy2"},
        {shop='Yacht Club Boat Shop',category='Normal Boat',stock=50,price=100000,model='dinghy3',name="Dinghy 3"},
        {shop='Yacht Club Boat Shop',category='Normal Boat',stock=50,price=100000,model='dinghy4',name="Dinghy4"},
        {shop='Yacht Club Boat Shop',category='Rich Boat',stock=50,price=100000,model='marquis',name="Marquiz"},
        {shop='Yacht Club Boat Shop',category='Rich Boat',stock=50,price=100000,model='toro2',name="Toro 2"},
        {shop='Yacht Club Boat Shop',category='Submarine',stock=50,price=100000,model='submersible',name="Submersible"},
        {shop='Yacht Club Boat Shop',category='Submarine',stock=50,price=100000,model='submersible2',name="Submersible2"},
    },
},
-- PLANE SHOP
['DEVIN WESTON PLANE SHOP'] = { -- same with name
    name = "DEVIN WESTON PLANE SHOP", --LEGION
    title = "DEVIN PLANE SHOP",
    icon = 'https://i.imgur.com/12rKk6E.png',
    type = 'plane', -- type of shop
    job = 'all',
    default_garage = 'Plane Hangar A',
    Dist = 7, -- distance (DEPRECATED)
    Blip = {color = 38, sprite = 423, scale = 0.9},
    shop_x = -916.04522705078,
    shop_y = -3025.2377929688,
    shop_z = 13.945063591003, -- coordinates for this garage
    spawn_x = -985.01806640625,
    spawn_y = -3005.4670410156,
    spawn_z = 14.783501625061,
    heading = 54.631553649902, -- Vehicle spawn location
    shop = { -- if not vehicle is setup in Database SQL, we will use this
        {shop='DEVIN WESTON PLANE SHOP',category='Military',stock=50,price=50000,model='hydra',name="Hydra"},
        {shop='DEVIN WESTON PLANE SHOP',category='Military',stock=50,price=100000,model='titan',name="Titan"},
        {shop='DEVIN WESTON PLANE SHOP',category='Private Plane',stock=50,price=100000,model='luxor2',name="Luxor 2"},
        {shop='DEVIN WESTON PLANE SHOP',category='Private Plane',stock=50,price=100000,model='luxor',name="Luxor"},
        {shop='DEVIN WESTON PLANE SHOP',category='Private Plane',stock=50,price=100000,model='nimbus',name="Nimbus"},
        {shop='DEVIN WESTON PLANE SHOP',category='Propeller Type',stock=50,price=100000,model='dodo',name="Dodo"},
        {shop='DEVIN WESTON PLANE SHOP',category='Propeller Type',stock=50,price=100000,model='duster',name="Duster"},
        {shop='DEVIN WESTON PLANE SHOP',category='Propeller Type',stock=50,price=100000,model='nokota',name="Nokota"},
    },
},

}

Config.EnableVehicleSelling = true – allow your user to sell the vehicle and deletes it from database
Config.RefundPercent = 70 – 70% (percentage from original value)
Refund = {
[‘pdm’] = { – same with name
name = “pdm”, --LEGION
job = ‘all’,
Dist = 7, – distance
Blip = {color = 38, sprite = 219, scale = 0.6},
shop_x = -46.320140838623,
shop_y = -1095.1837158203,
shop_z = 25.91579246521, – coordinates for selling / refunding the vehicle
},
}

in what shop are you having trouble?

PDM Vehicle Shop

you could try the latest server.lua

1 Like

After updating server.lua, everything started working, I can go to the store and buy cars. now I have such a problem that the hook I buy a car gets registration 111 aaa normally, I’m going to park a car in the garage, everything works normally, when I pull out the car gets registration aaa, I can’t park the car anymore, tells me that this car is not yours

how to fix it ?

Custom plate?
Are you using my garage?

I don’t know if it matters, but before that I used plate xxxxxxxx probably 8 characters, not 6. I use something like qb-garage, Custom plate seems to me

is there a problem with my qb- garage?

i dont know unless you provide how you custom your plates.

I’d love to show you everything, but I’m a lua amateur, tell me exactly what files to show you, sory xd

I coped with the license plates, everything works great, now I have a question how can I change / remove / add car categories, I use QBCore
categories

1 Like

First I have to say a huge thank you for releasing this script and others for free. This is something I’d buy. Secondly, is it in any way possible to add a text menu on vehicle selection to allow custom vehicle details to be written and displayed? I enjoy reading vehicle quotes from the car dealership in GTA SP and GTA online so was wanting to add them to my server. Cheers mate and thanks again!

1 Like