Vehicle towing system for FiveM
- Towing cars
- Network synchronized ropes
- Controllable rope length
- No framework require
- Clone or download this repo
- Copy the
zerodream_towing
folder to your server resources folder - Add
start zerodream_towing
to your server.cfg - Restart the server
SetTowVehicle: Use this function to set the towing car, you have to call it two times to set the first and second vehicle.
local vehicleA = GetVehiclePedIsIn(GetPlayerPed(-1), false)
local vehicleB = GetVehiclePedIsIn(GetPlayerPed(2), false)
exports["zerodream_towing"]:SetTowVehicle(vehicleA)
exports["zerodream_towing"]:SetTowVehicle(vehicleB)
FreeTowing: This function will detach the cars immediately.
if IsControlJustPressed(0, 51) then
exports["zerodream_towing"]:FreeTowing()
end
PocceMod: https://github.com/razzie/PocceMod
zerodream_towing - Vehicle towing script for FiveM
Copyright (C) 2022 Akkariin
This program Is free software: you can redistribute it And/Or modify it under the terms Of the GNU General Public License As published by the Free Software Foundation, either version 3 Of the License, Or (at your option) any later version.
This program Is distributed In the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty Of MERCHANTABILITY Or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License For more details.
You should have received a copy Of the GNU General Public License along with this program. If Not, see http://www.gnu.org/licenses/.