Aries007691 / Rb-Aur

A Stock system Integrated into qb-vehicleshop Vehicles are bought by the cardealer where he has to then collect the vehicle and take it back to the shop
GNU General Public License v3.0
14 stars 8 forks source link

Sell vehicle issue! #3

Closed impossiblt24 closed 9 months ago

impossiblt24 commented 9 months ago

1 2 I had 3 stock of vehicle but when i sold it to my self it show "Out of stock" can you guys help me with this

impossiblt24 commented 9 months ago

i use the latest of this script

IlMicioLetale commented 9 months ago

how you fix? thank you

impossiblt24 commented 9 months ago

how you fix? thank you

find this line in server.lua: RegisterNetEvent('qb-vehicleshop:server:sellShowroomVehicle', function(data, playerid)

then just add stock at the end of this line: RegisterNetEvent('qb-vehicleshop:server:sellShowroomVehicle', function(data, playerid, stock)

like this

IlMicioLetale commented 8 months ago

how you fix? thank you

find this line in server.lua: RegisterNetEvent('qb-vehicleshop:server:sellShowroomVehicle', function(data, playerid)

then just add stock at the end of this line: RegisterNetEvent('qb-vehicleshop:server:sellShowroomVehicle', function(data, playerid, stock)

like this

Thank you so much man!!