# exports

All exports are client sided.!!

## ImpoundVehicle - client s For police, or desired jobs to be able impound the cars

```lua
RegisterCommand("impound", function(source, args, rawCommand)
  exports.FinalZ_Garage:ImpoundVehicle(GetClosestVehicle(GetEntityCoords(PlayerPedId()), 2.0, 0))
end, false)

--The export has built-in animation.
```

## isVehLocked - Get if the vehicles is locked&#x20;

<pre class="language-lua"><code class="lang-lua">RegisterCommand("isLocked", function(source, args, rawCommand)
  local locked = exports.FinalZ_Garage:isVehLocked(GetClosestVehicle(GetEntityCoords(PlayerPedId()), 2.0, 0))
<strong>  if locked then
</strong><strong>    -- do smthng if vehicles is locked
</strong>  else
    -- return was false, check for the vehicle value in the export
  end
<strong>end, false)
</strong>

</code></pre>
