merhabalar No-NPC scriptini paketime kurdum ve scriptin startını verdim ve sorunsuz olarak çalıştı ama npcleri kapamak yerine açmama rağmen npc ler hala sunucumda yok. Yardım edebilirmisiniz
Kod satırım bu şekilde
Citizen.CreateThread(function()
while true do
Citizen.Wait(2) -- prevent crashing
-- These natives have to be called every frame.
SetVehicleDensityMultiplierThisFrame(0.5) -- set traffic density to 0
SetPedDensityMultiplierThisFrame(0.6) -- set npc/ai peds density to 0
SetRandomVehicleDensityMultiplierThisFrame(1.0) -- set random vehicles (car scenarios / cars driving off from a parking spot etc.) to 0
SetParkedVehicleDensityMultiplierThisFrame(0.3) -- set random parked vehicles (parked car scenarios) to 0
SetScenarioPedDensityMultiplierThisFrame(9.9, 9.9) -- set random npc/ai peds or scenario peds to 0
SetGarbageTrucks(false) -- Stop garbage trucks from randomly spawning
SetRandomBoats(true) -- Stop random boats from spawning in the water.
SetCreateRandomCops(false) -- disable random cops walking/driving around.
SetCreateRandomCopsNotOnScenarios(false) -- stop random cops (not in a scenario) from spawning.
SetCreateRandomCopsOnScenarios(false) -- stop random cops (in a scenario) from spawning.
local x,y,z = table.unpack(GetEntityCoords(PlayerPedId()))
ClearAreaOfVehicles(x, y, z, 1000, false, false, false, false, false)
RemoveVehiclesFromGeneratorsInArea(x - 500.0, y - 500.0, z - 500.0, x + 500.0, y + 500.0, z + 500.0);
end
end)
Kod satırım bu şekilde
Citizen.CreateThread(function()
while true do
Citizen.Wait(2) -- prevent crashing
-- These natives have to be called every frame.
SetVehicleDensityMultiplierThisFrame(0.5) -- set traffic density to 0
SetPedDensityMultiplierThisFrame(0.6) -- set npc/ai peds density to 0
SetRandomVehicleDensityMultiplierThisFrame(1.0) -- set random vehicles (car scenarios / cars driving off from a parking spot etc.) to 0
SetParkedVehicleDensityMultiplierThisFrame(0.3) -- set random parked vehicles (parked car scenarios) to 0
SetScenarioPedDensityMultiplierThisFrame(9.9, 9.9) -- set random npc/ai peds or scenario peds to 0
SetGarbageTrucks(false) -- Stop garbage trucks from randomly spawning
SetRandomBoats(true) -- Stop random boats from spawning in the water.
SetCreateRandomCops(false) -- disable random cops walking/driving around.
SetCreateRandomCopsNotOnScenarios(false) -- stop random cops (not in a scenario) from spawning.
SetCreateRandomCopsOnScenarios(false) -- stop random cops (in a scenario) from spawning.
local x,y,z = table.unpack(GetEntityCoords(PlayerPedId()))
ClearAreaOfVehicles(x, y, z, 1000, false, false, false, false, false)
RemoveVehiclesFromGeneratorsInArea(x - 500.0, y - 500.0, z - 500.0, x + 500.0, y + 500.0, z + 500.0);
end
end)