[GARAGE] Ausparken

This commit is contained in:
Miho931 2025-06-09 19:05:18 +02:00
parent e89bac3c6d
commit 8042ad195d
2 changed files with 80 additions and 2 deletions

View file

@ -143,4 +143,9 @@ QBCore.Functions.CreateCallback('mh_garage:verwaltung', function(source, cb)
end
end)
return vehicles
end)
RegisterServerEvent('mh_garage:spawnedVehicle')
AddEventHandler('mh_garage:spawnedVehicle', function(netID, plate)
MySQL.query("UPDATE player_vehicles SET parking = ? WHERE plate = ?", {0, plate})
end)