mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 16:23:21 +00:00
refactor(es_extended/client/main.lua): Remove unused variables and some comments
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
local pickups = {}
|
local pickups = {}
|
||||||
local PlayerBank, PlayerMoney = 0,0
|
|
||||||
CreateThread(function()
|
CreateThread(function()
|
||||||
while not Config.Multichar do
|
while not Config.Multichar do
|
||||||
Wait(0)
|
Wait(0)
|
||||||
@@ -52,7 +52,6 @@ AddEventHandler('esx:playerLoaded', function(xPlayer, isNew, skin)
|
|||||||
|
|
||||||
while ESX.PlayerData.ped == nil do Wait(20) end
|
while ESX.PlayerData.ped == nil do Wait(20) end
|
||||||
|
|
||||||
-- enable PVP
|
|
||||||
if Config.EnablePVP then
|
if Config.EnablePVP then
|
||||||
SetCanAttackFriendly(ESX.PlayerData.ped, true, false)
|
SetCanAttackFriendly(ESX.PlayerData.ped, true, false)
|
||||||
NetworkSetFriendlyFireOption(true)
|
NetworkSetFriendlyFireOption(true)
|
||||||
@@ -74,6 +73,7 @@ AddEventHandler('esx:playerLoaded', function(xPlayer, isNew, skin)
|
|||||||
DisabledComps[#DisabledComps + 1] = i
|
DisabledComps[#DisabledComps + 1] = i
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
while true do
|
while true do
|
||||||
local Sleep = true
|
local Sleep = true
|
||||||
|
|
||||||
@@ -102,9 +102,9 @@ AddEventHandler('esx:playerLoaded', function(xPlayer, isNew, skin)
|
|||||||
|
|
||||||
if Config.DisableNPCDrops then
|
if Config.DisableNPCDrops then
|
||||||
Sleep = false
|
Sleep = false
|
||||||
RemoveAllPickupsOfType(0xDF711959) -- carbine rifle
|
RemoveAllPickupsOfType(0xDF711959)
|
||||||
RemoveAllPickupsOfType(0xF9AFB48F) -- pistol
|
RemoveAllPickupsOfType(0xF9AFB48F)
|
||||||
RemoveAllPickupsOfType(0xA9355DCD) -- pumpshotgun
|
RemoveAllPickupsOfType(0xA9355DCD)
|
||||||
end
|
end
|
||||||
|
|
||||||
if #DisabledComps > 0 then
|
if #DisabledComps > 0 then
|
||||||
|
|||||||
Reference in New Issue
Block a user