csharp tint_check.cs

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了csharp tint_check.cs相关的知识,希望对你有一定的参考价值。

Vector3 pos = playerPed.Position;

int vehicleHandle = Function.Call<int>(Hash.GET_CLOSEST_VEHICLE, pos.X, pos.Y, pos.Z, 3f, 0, 70);
Vehicle vehicle = new Vehicle(vehicleHandle);

Function.Call(Hash.SET_VEHICLE_WINDOW_TINT, vehicle, 1);

int vehicleTint = Function.Call<int>(Hash.GET_VEHICLE_WINDOW_TINT, vehicle.NativeValue);

Screen.ShowNotification(vehicleTint.ToString());

switch (vehicleTint)
{

    case 0:
        Screen.ShowNotification("Tint Reading: ~r~100%");
        return;

    case 1:
        Screen.ShowNotification("Tint Reading: ~r~10%");
        return;

    case 2:
        Screen.ShowNotification("Tint Reading: ~r~20%");
        return;

    case 3:
        Screen.ShowNotification("Tint Reading: ~r~30%");
        return;

    case 4:
        Screen.ShowNotification("Tint Reading: ~r~40%");
        return;

    case 5:
        Screen.ShowNotification("Tint Reading: ~r~20%");
        return;

    case 6:
        Screen.ShowNotification("Tint Reading: ~r~20%");
        return;

    default:
        Screen.ShowNotification("Tint Reading: ~r~ERROR");
        return;

}

以上是关于csharp tint_check.cs的主要内容,如果未能解决你的问题,请参考以下文章

csharp 例如-CSHARP-GroupDocs.Conversion.Examples.CSharp - 程序 - ConvertFilesToDifferentFormats.cs

csharp 例如-CSHARP-GroupDocs.Conversion.Examples.CSharp渲染,RenderPSDImageAsPath.cs

csharp 实例-CSHARP-GroupDocs.Conversion.Examples.CSharp变频-ConvertTopresentationAsPath.cs

csharp 实例-CSHARP-GroupDocs.Conversion.Examples.CSharp变频-ConvertTopresentationAsPath.cs

csharp 实例-CSHARP-GroupDocs.Conversion.Examples.CSharp变频-ConvertTopresentationAsPath.cs

csharp 例如-CSHARP-GroupDocs.Search.Examples.CSharp索引,AddDocumentToIndex.cs