Advertisement
Eddlm

Scaleforms (Car stats) Example

May 31st, 2017
954
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.58 KB | None | 0 0
  1. //Needs to be called OnTick
  2.  
  3. //Load it
  4. Scaleform racertext = new Scaleform("mp_car_stats_02");
  5.  
  6.  
  7. if (!racertext.IsLoaded) racertext = new Scaleform("mp_car_stats_02");
  8.  
  9. int int1 =24;
  10. int int2 =49;
  11. int int3 =74;
  12. int int4 =99;
  13. string Text1="Text 1";
  14. string CarLogo="Dinka";
  15.  
  16. racertext.CallFunction("SET_VEHICLE_INFOR_AND_STATS", Text1, Car.FriendlyName, "MPCarHUD", CarLogo, "int1", "int2", "int3", "int4", int1, int2, int3, int4);
  17. racertext.Render3D(Car.Position + new Vector3(0.0f, 0.0f, Car.Model.GetDimensions().Z + 1f), GameplayCamera.Rotation, new Vector3(6f, 3f, 1f));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement