Alexandre Makina Posted January 3, 2017 Share Posted January 3, 2017 (edited) I'm having a problem with this feature. Even altering the distance, you can see the text from anywhere on the map. How to solve? I would like the text to be seen only when it is near. --------------------------- AddEventHandler (' onClientRender ',de raiz, função ( ) para _ , aVehicle na próxima , getElementsByType ( [[ veículo ]] ) fazer Se aVehicle e getElementModel ( aVehicle ) == 429 então locais APX,APY,apz= getElementPosition (localPlayer); locais AVX,avy,AvZ= getElementPosition (aVehicle); se ( getDistanceBetweenPoints3D ( APX , APY , apz , AVX , avy , AVZ ) <= 10 ) , em seguida, locais ASX,ASY= getScreenFromWorldPosition (AVX,avy,AVZ); se ( ASX e ASY ) , em seguida, dxDrawText ( tostring ( getVehiclePlateText (aVehicle)),ASX,ASY,_,_, toColor (255,0,0,255),2,'Arial',"centro","centro"); fim fim fim fim fim ); Edited January 3, 2017 by Alexandre Makina Link to comment
Recommended Posts