Citizen.CreateThread(function()
while true do
Citizen.Wait(1) -- 防止崩溃
--这些本地人必须在每一帧都被称为。
SetVehicleDensityMultiplierThisFrame(1.0) -- 将流量密度设置为0
SetPedDensityMultiplierThisFrame(0.5) -- 将npc / ai peds密度设置为0
SetRandomVehicleDensityMultiplierThisFrame(0.5) -- 将随机车辆(汽车场景/从停车位开出的汽车等)设置为0
SetParkedVehicleDensityMultiplierThisFrame(0.1) -- 将随机停放的车辆(停放的车辆场景)设置为0
SetScenarioPedDensityMultiplierThisFrame(0.1, 0.1) -- 将随机NPC / AI步数或脚本步数设置为0
SetGarbageTrucks(true) -- 阻止垃圾车随机产生
SetRandomBoats(true) -- 阻止随机的小船在水中产卵。
SetCreateRandomCops(false) -- 禁止随机警察走来走去。
SetCreateRandomCopsNotOnScenarios(true) -- 阻止随机警察(不在场景中)产生。
SetCreateRandomCopsOnScenarios(true) -- 阻止随机警察(在某种情况下)产生。
local x,y,z = table.unpack(GetEntityCoords(PlayerPedId()))
ClearAreaOfVehicles(x, y, z, 1000, false, false, false, false, false)
RemoveVehiclesFromGeneratorsInArea(x - 5000.0, y - 5000.0, z - 5000.0, x + 5000.0, y + 5000.0, z + 5000.0);
end
end)
我知道答案
回答被采纳将会获得
5 贡献
+
30 贡献
已有3人回答
|