So i decided to create my first resource in C# since i have some knowledge with it and i got surprised that it uses 0.13ms in resmon
using CitizenFX.Core;
using CitizenFX.Core.Native;
using System.Threading.Tasks;
namespace Assets
{
public class Assets : BaseScript
{
public Assets()
{
Tick += OnTick;
}
private async Task OnTick()
{
// Reduce Traffic
API.SetVehicleDensityMultiplierThisFrame(0.1f);
API.SetRandomVehicleDensityMultiplierThisFrame(0.1f);
API.SetScenarioPedDensityMultiplierThisFrame(0.0f, 0.0f);
API.SetGarbageTrucks(false);
API.SetRandomBoats(false);
API.SetCreateRandomCops(false);
API.SetCreateRandomCopsNotOnScenarios(false);
API.SetCreateRandomCopsOnScenarios(false);
await Task.FromResult(0);
}
}
}
u still dont get it ??