/// <summary> /// Gets the color name /// </summary> /// <param name="paint">Color to get the name from</param> /// <returns></returns> public string GetColorName(EPaint paint) { String name = Enum.GetName(typeof(EPaint), paint); return name.Replace("_", " "); }
/// <summary> /// Sets the color to this Rage.Vehicle instance /// </summary> /// <param name="v"></param> /// <param name="primaryColor">The primary color</param> /// <param name="secondaryColor">The secondary color</param> public static void SetColors(this Vehicle v, EPaint primaryColor, EPaint secondaryColor) { NativeFunction.CallByName<uint>("SET_VEHICLE_COLOURS", v, (int)primaryColor, (int)secondaryColor); }