ok sir noted thanks for that
I canât make the vehicleshop open and this appears in Console.
unknown.png (873Ă24) (discordapp.com)
This is the config.lua
unknown.png (1618Ă206) (discordapp.com)
Using renzu_popui and es_extended
edit config.lua
change the ghmattisql to mysql-async
or install ghmattisql
config is actually in mysql-async, can i use mysql-async and ghmatti at the same time?
hey there, when i come to the sell zone i canât do anything, like if there is nothing here , maybe you can help me ? because everything work very good but i canât sell personnal car
make sure you configure the config.PlateSpace to true if your system uses spaces on plates.
also send me server error if there is any.
is the vehicle your trying to sell is stored in your vehicles table?
you should not use ghmatti and mysql-async at the same time, but it will work.
just choose one. and set it to the config
even with spaces it donât work and sadly i donât have any error
can you answer this
and currently if you cant sell vehicle.
you should be able to see this prints on server
print(âEXPLOITâ) and print(ânot ownedâ)
let me know what you see
yes the car is stored on vehicle table and i donât have EXPLOIT message anywhere
how abou this one?
if you did not see this too, update your vehicleshop, you maybe have the first version.
and maybe you are selling boats, and other custom shop which is not possible right now
not this one too, ok i will try to update thanks
do you have this
renzu_vehicleshop:sellvehicle
around server:104 line
or
yes i have this line and i 'm trying to sell a car
code
RegisterServerEvent(ârenzu_vehicleshop:sellvehicleâ)
AddEventHandler(ârenzu_vehicleshop:sellvehicleâ, function()
local source = source local xPlayer = ESX.GetPlayerFromId(source) local price = 1000 local vehicle = GetVehiclePedIsIn(GetPlayerPed(source)) local plate = GetVehicleNumberPlateText(vehicle) r = Database('SELECT * FROM owned_vehicles WHERE UPPER(plate) = @plate and owner = @owner', {['@plate'] = plate:upper(), ['@owner'] = xPlayer.identifier},xPlayer.source,'fetch') if #r > 0 then local model = json.decode(r[1].vehicle).model if model == GetEntityModel(vehicle) then result = Database('SELECT * FROM vehicles', {},xPlayer.source,'fetch') if #result > 0 then for k,v in pairs(result) do if model == GetHashKey(v.model) then price = v.price * (Config.RefundPercent * 0.01) end end Deleteveh(plate,xPlayer.source) xPlayer.addMoney(price) xPlayer.showNotification('Vehicle has been Sold for ^g '..price..'',1,0,110) end else print("EXPLOIT") xPlayer.showNotification('Are you really sure this is the vehicle?',1,0,110) end else xPlayer.showNotification('You dont owned this vehicle',1,0,110) print("not owned") end
end)
if you are updated
and you cant see this print
not owned
and
EXPLOIT
its mean you are not triggering the sell function at all. there must be a problem with your system or the vehicle you are trying to sell is not in your database vehicles
table
show me a clip that you are trying to sell a vehicle and show the server console and f8 console too.
sure but to try to sell a car a window will appear like the window to buy a car right ?
Yes as i said in my last reply.
If you cant see prints
It only means you are selling a vehicle not listed in vehicles
table in mysql nothing else because no error right.
Here you go, i have updated my version, deleted the cache and the car is in the vehicles table but as you can see even the window is not here but the window to buy a car is here
I see the clip, you did not try to sell itâŚ
You should be in a vehicle if you want to sell
Did you sent a wrong clip?
no no itâs the right clip , the place where i am with the car is the location of the selling point and like me you havenât seen any message to sell or any window