# Standalone Winch Script

## Step 1 - Installation

To get started, you'll need to download your new resource previously purchased from our [`store`](https://space101.store/). For that, you must login with your account on [`keymaster`](https://keymaster.fivem.net/asset-grants/) and look for the Asset Grants section, there we will find our script.

<figure><img src="https://dunb17ur4ymx4.cloudfront.net/packages/images/5ce3821549f98c3ba45617fd825005806e9fce39.png" alt="https://space101.tebex.io/package/5729631"><figcaption></figcaption></figure>

## Step 2 - Configuration

1. **Debug mode:** If you want to see extra information for troubleshooting, change `Config.Debug` to `true`. If not, set it to `false`.
2. **Maximum rope length:** You can decide how long the rope can be by changing `Config.MaxLengthRope` to a different number. In the example, it's set to 19.0.
3. **Resynchronization frequency:** This determines how often the rope gets synchronized. You can change it by modifying `Config.ResyncRopeFrenquency`. The example has it set to 10000, which means every 10 seconds. **(We Recommend Not Changing This)**
4. **Valid models:** This part defines the models that can be used for the rope. It shows one model called `sof250`. For each model, there are three things you can change:
   * `ropeBone`: This is the part of the object the rope attaches to. In this case, it's set to "engine".
   * `ropeOffset`: It determines how far the rope is from the attachment point. In the example, it's set to (0.0, 0.94, -0.80).
   * `ropeDistanceTake`: This sets how much the rope can be stretched by the player. In the example, it's set to 1.5.
5. **Hook model:** This specifies the model used for the hook. You can change it by modifying `Config.HookModel`. The current value is 'prop\_rope\_hook\_01'.

Compatible models:

* [2021 Off-road Law Enforcement Truck](https://space101.store/products/offroad-truck-package)
* [2021 Fire Utility/Lifeguard Truck](https://space101.store/products/2021-fire-utility-lifeguard-truck)
