From 8c181ff2ab8abb980ae61270817e299586329d1d Mon Sep 17 00:00:00 2001 From: Amir_Lynx <60301485+AmirLynx@users.noreply.github.com> Date: Tue, 1 Nov 2022 00:39:43 +0330 Subject: [PATCH] conflict --- [esx_addons]/esx_lscustom/server/main.lua | 36 ----------------------- 1 file changed, 36 deletions(-) diff --git a/[esx_addons]/esx_lscustom/server/main.lua b/[esx_addons]/esx_lscustom/server/main.lua index c26ce64e..a2f41376 100644 --- a/[esx_addons]/esx_lscustom/server/main.lua +++ b/[esx_addons]/esx_lscustom/server/main.lua @@ -18,42 +18,6 @@ RegisterNetEvent('esx_lscustom:stopModing', function(plate) end end) -AddEventHandler('esx:playerDropped', function(src) - src = tostring(src) - local playersCount = #ESX.GetExtendedPlayers() - if Customs[src] then - for k,v in pairs(Customs[src]) do - local entity = NetworkGetEntityFromNetworkId(v.netId) - if DoesEntityExist(entity) then - if players > 0 then - TriggerClientEvent('esx_lscustom:restoreMods', -1, v.netId, v.props) - else - DeleteEntity(entity) - end - end - end - Customs[src] = nil - end -end) -local Customs = {} - -RegisterNetEvent('esx_lscustom:startModing', function(props, netId) - local src = tostring(source) - if Customs[src] then - Customs[src][props.plate] = {props = props, netId = netId} - else - Customs[src] = {} - Customs[src][props.plate] = {props = props, netId = netId} - end -end) - -RegisterNetEvent('esx_lscustom:stopModing', function(plate) - local src = tostring(source) - if Customs[src] then - Customs[src][tostring(plate)] = nil - end -end) - AddEventHandler('esx:playerDropped', function(src) src = tostring(src) local playersCount = #ESX.GetExtendedPlayers()