> For the complete documentation index, see [llms.txt](https://docs.mosotoscripts.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mosotoscripts.com/scripts/mst_seatbelt/integrations/jg-hud.md).

# jg-hud

Step-by-step guide to integrating jg-hud with mst\_seatbelt

***

## STEP 1 - Configurations

Turn `Config.UseCustomSeatbeltIntegration` to **true** and `Config.SeatbeltKeybind` to **false**

<div align="left"><figure><img src="https://1455386872-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrbcBTM4p7TpOd5nMepYG%2Fuploads%2FDNmkKoeRjQZuTcnyFxKr%2Fseatbeltconfig.jpg?alt=media&amp;token=898ffc0b-e3b1-4b9b-9f07-77a2f76da7e2" alt=""><figcaption><p>config.lua</p></figcaption></figure></div>

## STEP 2 - Modifications

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

{% file src="/files/UOIYz0u7ycGGdltwi0pM" %}

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*
