Documentation

Setup

Install and configure towing.

#Download

Download these from your CFX portal under Granted Assets:

  • Zyke's Towing, the zyke_towing resource.
  • Zyke's Towing (Assets), the zyke_towing_assets resource. It is required.

If a resource is missing from your portal, see Lacking Entitlement.

#Dependencies

Install oxmysql and zyke_lib, and configure its framework, inventory, target, and vehicle-key providers as needed. See Dependencies.

#Resources

Place both zyke_towing and zyke_towing_assets in your server's resources folder. Keep the folder names as they are.

#Items & Images

Copy the matching definitions from zyke_towing/extras/items/ox_inventory.txt or zyke_towing/extras/items/qb-core.txt into your configured inventory. Copy the icons from zyke_towing/extras/items/images/256/ into the inventory's image directory, or the outlined versions from extras/items/images/256/artwork/ if your inventory uses that style. The bundled definitions include tow_rope, tow_cable, tow_controller, and tow_winch.

Keep tow_controller non-stackable/unique so each physical controller retains its own vehicle-pairing metadata. See Rollback Controller for setup and use.

For itemless towing, set Config.Settings.towing.requireItem = false.

#Sounds

The towing sounds are bundled in zyke_sounds 0.7.5 and newer. Keep zyke_sounds up to date and there is nothing to copy. On an older zyke_sounds, copy zyke_towing/extras/sounds/towing into zyke_sounds/nui/sounds/ and restart zyke_sounds. See Sounds From Other Resources.

Towing works without zyke_sounds, but silently.

#Configuration

Edit shared/unlocked/config.lua. Review command permissions, material rules, bed access, and supported carrier models. Use the Config reference for current defaults.

Custom action restrictions belong in client/unlocked/can_checks.lua and server/unlocked/can_checks.lua. Enforce trusted restrictions on the server.

#Start Order

Start your configured providers and their dependencies before Towing:

cfg
ensure oxmysql
ensure zyke_lib
ensure zyke_sounds
ensure zyke_towing_assets
ensure zyke_towing

The database tables are created on the first start, so there is no SQL to import. Use ensure zyke_towing and stop zyke_towing to control resource availability.

#Verify Gameplay

Equip a rope, attach both bumpers, tow, and manually detach. Repeat with a cable and the winch controls. Test loading and unloading each carrier model you enable, including access requirements and deck clearance.