# jg-hud

***

## STEP 1 - Configurations

Turn `Config.UseCustomSeatbeltIntegration` to **true**

<div align="left"><figure><img src="https://1455386872-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrbcBTM4p7TpOd5nMepYG%2Fuploads%2FsslbAVBfPiyg0L90JucH%2Fimage.png?alt=media&#x26;token=643fce5b-d576-4bd0-9127-602fdec62f44" alt=""><figcaption><p>config.lua</p></figcaption></figure></div>

## STEP 2 - Modifications

Replace **jg-hud/client/cl-seatbelt.lua** with ours.

{% file src="<https://1455386872-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrbcBTM4p7TpOd5nMepYG%2Fuploads%2FztAelZ5b2lLGmRH6GIBX%2Fcl-seatbelt.lua?alt=media&token=aa56c10c-1894-44a2-b4f4-d5640f16055b>" %}

Then go in **jg-hud/framework/cl-functions.lua** and find `Framework.Client.ToggleSeatbelt` then replace it with this code:

```lua
function Framework.Client.ToggleSeatbelt(vehicle, seatbeltOn)
  if GetResourceState("mst_seatbelt") == "started" and exports["mst_seatbelt"] and exports["mst_seatbelt"].SetSeatbelt then
    exports["mst_seatbelt"]:SetSeatbelt(seatbeltOn)
  end
  -- ...or add another custom seatbelt integration here!
end
```

## STEP 3 - Remove default sound effects

To hear only the **Mosoto Seatbelt** sounds you need to delete the three sound files that are from the hud located in **jg-hud/web/dist/sfx** - *seatbelt-on.mp3*, *seatbelt-off.mp3*, *seatbelt-alarm.mp3*
