๐Ÿ“„Send Vehicle Garage

this is code for send vehicle back to garage for some garages

JG Garage :

-- Replace this function with same empty function in fs_carwipe/server/unlocked.lua
-- this function run for each vehicle after wipe successfully done
function AfterSuccessfullyWiped(plate, owned) -- this function will only run on after successfully wiping vehicle
    if owned then
        MySQL.update.await('UPDATE owned_vehicle SET in_garage = 1 WHERE plate = ?', {plate})
    end
end

Last updated