qbcore-framework / qb-garages

Garage System Used With QB-Core :car:
GNU General Public License v3.0
48 stars 259 forks source link

[SUGGESTION] Impound fees #248

Closed DisguisedOG closed 2 years ago

DisguisedOG commented 2 years ago

Correct me if I'm wrong but we have no way of charging fees at the impound lot?

I'm wanting to charge players a 350 dollar fee for fetching their car from the impound when they are too lazy to garage it.

They keep using the impound as a personal garage.

If this is already in please do point me in the right direction :D

singh-manavv commented 2 years ago

if you /depot [price] , they will have to pay the price , when taking out from impound lot

twigmasters commented 1 year ago

if you /depot [price] , they will have to pay the price , when taking out from impound lot

this is only if police impound the vehicle. Is there a way to change how much it cost to pull a car from impound if it was not done by police? When going to impound lot it says [$0]

I have not been able to find where to change it.

Update: Found it in sever/main.lua

RegisterNetEvent('qb-garage:server:updateVehicleState', function(state, plate, garage) MySQL.Async.execute('UPDATE player_vehicles SET state = ?, garage = ?, depotprice = ? WHERE plate = ?',{state, garage, 250, plate}) end)

Also found that police are not charged.