@JohnFromGWN
Are you using the EventHandler like:
"PaintIndex.ValueChanged += PaintIndex_ValueChanged;" and then just put
"Function.Call(Hash.SET_VEHICLE_COLOURS, LastVehicle, PaintIndex.Value, PaintIndex.Value)" into the new function?
Wasn't sure how you had it all setup but was just curious. Working on a mod now so I'll give this a try and see if I can make it work.
EDIT:
So quick test and it works fine for me using
private void PaintIndex_ValueChanged(object sender, EventArgs e)
{
Function.Call(Hash.SET_VEHICLE_COLOURS, Game.Player.Character.LastVehicle, PaintIndex.Value, PaintIndex.Value);
GTA.UI.Screen.ShowSubtitle("Paint IndexValue is " + PaintIndex.Value, 4000);
}
Obviously you'd have to check if the vehicle exists and all of that but I had no issues.