[DS] Winching/Pulling System

5M-CodeX Winch Lua Script

Lua script for attaching a winch between vehicles in a game environment.

Table of Contents

Description

This Lua script enables the attachment of a winch between vehicles in the game environment. It provides various commands to attach the winch at different points on the vehicles.

Installation

  1. Download the script files.
  2. Place the script files in the appropriate directory in your game server.

Commands

The following commands are available:

Command Description
/ffwinch Attach winch from the front to the front of the vehicle (engine to bumper).
/flwinch Attach winch from the front left wheel to the front left wheel of the vehicle.
/frwinch Attach winch from the front to the front right bumper.
/frwwinch Attach winch from the front right wheel to the front right wheel of the vehicle.
/lfwwinch Attach winch from the front to the left front window.
/rfwinch Attach winch from the right front bumper to the front of the vehicle.
/rfwwinch Attach winch from the front to the right front window.
/rrwinch Attach winch from the right rear bumper to the right rear bumper of the vehicle.

Contributing

Feel free to contribute by opening issues or submitting pull requests.

Examples

198361579-683b6ac9-7618-4969-9cea-75d4ea8711e5
198361576-604c1882-417b-4064-9aaf-5e4efce7d664
198361569-7bcfb40d-bb9a-47a0-b6e5-8a62a1426510
198361556-887c8cea-1167-4e64-b668-32463e5c8db5

Download

Support

11 Likes

nice work

Nice one!

curious resmon idle/active?

1 Like

I’ll update soon :purple_heart: (Profile - Beauflexx - Cfx.re Community)

1 Like

[DS] Winch Resource Monitor

1 Like

nice work, which map are you using?

1 Like

I don’t really remember I found some additional airports for my ATC release. If I find it again I’ll make sure to come back and post it :slight_smile:

thanks mate i will love that action

1 Like

why is it making me start like 6 different resources ffwinch rwinch ect

Cause i have not combined them into one.

not gonna lie I tried combining them into one script so that I can do /ffwinch on one car and /rrwinch on the second car, but it didn’t work and I’m really frustrated right now

1 Like

Okay, so after using the winch script a time or two, i am happy with it… but i have noticed that i have to restart the resource every so often during patrols… any fix to this?

Maybe I did, I don’t know yet I just consolidated it into one resource.

I don’t believe I made it able to have more the one ROPE per person. Yet you can try again, and if you notice it still doesn’t let you do what you want to make a request. And I’ll try to get to it.

First, thank you for this script. However I keep getting the error that the vehicle cannot be used to winch. They are addon vehicles, but is it specific to a type of car?

Mostof the time this is fue to the vehicle not having tbe specific bone the command ylu are ysing is trying to use to attach from.

oh ok, thanks for the quick reply.