Security HUD
System Watchdog
×
Threads Scanned
-- / --
SYS. LOAD --%
AI SHIELD ACTIVE
DMCA Policy
×

📋 DMCA Compliance

This platform and community fully complies with the Digital Millennium Copyright Act (DMCA) and international copyright laws. We take all copyright protection seriously.

🛡️ Copyright Protection

If you believe a posted item belongs to you or violates your copyright, you may file a DMCA takedown request through our official channels. Upon receiving a valid claim, the infringing content will be removed within 24 hours.

What's new
×
Fiveguard

Script 🚀 🚀kuz towing 1.0.4_1 [JOB]🚀 🚀

Newhopegame

Gold Elite
Joined
Apr 30, 2022
Messages
50
Reaction score
8,284
Points
296
Location
canada
Hi guys, please leave a like and a good comment here :) Have fun with the script.

🚀 🚀


PREVIEW:
1718199616633.png
 

notabott

Silver Elite
Joined
Mar 20, 2024
Messages
29
Reaction score
60
Points
221
Location
NYNY
upload it without the encrypted section in the server.lua
 

notabott

Silver Elite
Joined
Mar 20, 2024
Messages
29
Reaction score
60
Points
221
Location
NYNY
1720597712922.png


Everyone use this......
ESX = nil
local ropes = {}


if Config.useEsx then
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
ESX.RegisterUsableItem(Config.towRopeItem, function(source)
TriggerClientEvent('kuz_towing:eek:penTowingMenu', source)
end)
end
RegisterServerEvent("kuz_towing:tow")
AddEventHandler("kuz_towing:tow", function(veh1, veh2)
local allPlayers = GetPlayers()
for k, player in pairs(allPlayers) do
TriggerClientEvent('kuz_towing:makeRope', player, veh1, veh2, source)
end
table.insert(ropes, {veh1, veh2, source})
end)

Citizen.CreateThread(function()
while true do
Citizen.Wait(Config.ropeSyncDuration * 1000)
refreshRopes()
end
end)
function refreshRopes()
local allPlayers = GetPlayers()
if #ropes > 0 then
for k, rope in pairs(ropes) do
for i, player in pairs(allPlayers) do
TriggerClientEvent('kuz_towing:makeRope', player, rope[1], rope[2], rope[3], rope[3] == player)
end
end
end
end
RegisterServerEvent("kuz_towing:stopTow")
AddEventHandler("kuz_towing:stopTow", function()
local allPlayers = GetPlayers()
for k, rope in pairs(ropes) do
if rope[3] == source then
for i, player in pairs(allPlayers) do
TriggerClientEvent('kuz_towing:removeRope', player, source, rope[1], rope[2])
ropes[k] = nil
end
end
end
end)
 
Top