I was modifying mraes’ heli script to show street name, direction and speed but it seems to cut off certain characters when there’s a long street name. Any help?
Short/single street name
Long/cross street name
(doesn’t show speed, sometimes it just shows ‘Spe’ or something)
STRING has a max char count
Instead of
SetTextEntry("STRING")
AddTextComponentString...
Try using
-- this code somewhere at start of resource (only call once)
AddTextEntry("vehicleinfo", "Model: ~a~\nPlate: ~a~")
-- this code at RenderVehicleInfo(vehicle)
SetTextEntry("vehicleinfo")
AddTextComponentString(vehname)
AddTextComponentString(licenseplate)
DrawText(0.45, 0.9)
5 Likes
Ahh, you’re a legend. Cheers.
Sorry, still trying to learn all this.
1 Like