/codex-winch

A Simple Winch Rope System.

Primary LanguageLua

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.

Usage

  1. Launch the game server.
  2. Execute the Lua script.
  3. Use the provided commands to attach the winch between vehicles.

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