Advertisement
Guest User

Untitled

a guest
Feb 17th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. function VehicleScaleform(vehName, speed, handling, damage, armour)
  2. scaleform = RequestScaleformMovie("mp_car_stats_20")
  3. while not HasScaleformMovieLoaded(scaleform) do
  4. Citizen.Wait(0)
  5. end
  6.  
  7. PushScaleformMovieFunction(scaleform, "SET_VEHICLE_INFOR_AND_STATS")
  8. PushScaleformMovieFunctionParameterString(vehName)
  9. PushScaleformMovieFunctionParameterString("Vehicle (BLAH BLAH BLAH)") -- details
  10. PushScaleformMovieFunctionParameterString("MPCarHUD") -- TXD
  11. PushScaleformMovieFunctionParameterString("hvy") -- Texture
  12. PushScaleformMovieFunctionParameterString("Top Speed") -- statStr1
  13. PushScaleformMovieFunctionParameterString("Handling") -- statStr2
  14. PushScaleformMovieFunctionParameterString("Damage") -- statStr3
  15. PushScaleformMovieFunctionParameterString("Armour") -- statStr4
  16. PushScaleformMovieFunctionParameterInt(speed) -- statVal1
  17. PushScaleformMovieFunctionParameterInt(handling) -- statVal2
  18. PushScaleformMovieFunctionParameterInt(damage) -- statVal3
  19. PushScaleformMovieFunctionParameterInt(armour) -- statVal4
  20. PopScaleformMovieFunctionVoid()
  21.  
  22. return scaleform
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement