This commit is contained in:
Nordi98 2025-07-12 13:10:51 +02:00
parent 26ed285540
commit 4c95214808
53 changed files with 694 additions and 2507 deletions

View file

@ -0,0 +1,22 @@
if Config.commands.towing.enabled then
RegisterCommand(Config.commands.towing.command, function(source)
if Config.jobWhitelist.towing.enabled then
if not IsPlayerJobWhitelisted(source, Config.jobWhitelist.towing.jobs) then
return TriggerClientEvent('kq_towing:client:notify', source, L('~r~You may not use this item'))
end
end
TriggerClientEvent('kq_towing:client:startRope', source, false, false)
end)
end
if Config.commands.winch.enabled then
RegisterCommand(Config.commands.winch.command, function(source)
if Config.jobWhitelist.winch.enabled then
if not IsPlayerJobWhitelisted(source, Config.jobWhitelist.winch.jobs) then
return TriggerClientEvent('kq_towing:client:notify', source, L('~r~You may not use this item'))
end
end
TriggerClientEvent('kq_towing:client:startRope', source, true, false)
end)
end