SHARE
TWEET

Scaleforms (Car stats) Example

Eddlm May 31st, 2017 (edited) 317 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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));
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top