So alot of ppl ask me if i can solve some bugs or even update the 2.0 version. Yep its right here.
What is kuana_garage 3.0?
Its a system that saves cars where you leave them. So no markers to store your vehicle, just leave them where you want.
Why is different/new?
Now it saves the damage of the windows, doors (if you lost your door) and tires. And like i said some bugs were solved.
How can i impound cars with this garage?
You can create a local where only mechanics and polices can get in, and leave the car there. If you are a cop you have the command to despawn the car (/apre).
This work with my house garage?
Yes just make a teleport to your house garage and leave it there.
Can others player steal my car?
Yes they can, be careful.
PS:
You can spawn the car everywhere in the map. If you leave the server inside the car the position will not save. It only save if you leave the car. (to not lag the server).
Commands:
/garagem - open your garage;
/apre - to impound the vehicle - only police can do it
/procarro - to search the car owner and know where is it on the map - only police can do it
/givecarkeys - give the keys to another player
U - to lock your car.
Video: https://www.youtube.com/watch?v=cIZeFYG6BMo
Download: https://github.com/Kuanaxd/kuana_garage
To prevent cars despawn: https://github.com/Kuanaxd/2
VehicleShop - server side:
RegisterServerEvent('carshop:setVehicleOwned')
AddEventHandler('carshop:setVehicleOwned', function (vehicleProps)
local _source = source
local xPlayer = ESX.GetPlayerFromId(_source)
MySQL.Async.execute('INSERT INTO owned_vehicles (owner, plate, vehicle, x, y, z, h, health) VALUES (@owner, @plate, @vehicle, @xx, @yy, @zz, @hh, @vida)',
{
['@owner'] = xPlayer.identifier,
['@plate'] = vehicleProps.plate,
['@vehicle'] = json.encode(vehicleProps),
["@xx"] = -245.86,
["@yy"] = 6257.2,
["@zz"] = 31.09,
["@hh"] = 223.97,
["@vida"] = 1000
}, function (rowsChanged)
TriggerClientEvent('esx:showNotification', _source, "O Carro com a matricula ~y~"..vehicleProps.plate.."~w~ foi lhe ~g~entregue~w~.")
end)
end)