Jump to content

Alexandre Makina

Members
  • Posts

    7
  • Joined

  • Last visited

Posts posted by Alexandre Makina

  1. Interesting resource. It will be useful.
    But that's not exactly what I need ... In this feature the player has to give a command to pick up the weapons. If in case he acquiring otherwise the weapons do not appear in his standard menu.
    I need a feature that when the player acquires a weapon, regardless of the shape, it stays with it even if it already has another of the same category and that appears in its menu in a common way, without commands.

  2. 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.

    ---------------------------

    1. AddEventHandler (' onClientRender ',de raiz,
    2. função ( )
    3. para _ , aVehicle na próxima , getElementsByType ( [[ veículo ]] ) fazer
    4. Se aVehicle e getElementModel ( aVehicle ) == 429 então
    5. locais APX,APY,apz= getElementPosition (localPlayer);
    6. locais AVX,avy,AvZ= getElementPosition (aVehicle);
    7. se ( getDistanceBetweenPoints3D ( APX , APY , apz , AVX , avy , AVZ ) <= 10 ) , em seguida,
    8. locais ASX,ASY= getScreenFromWorldPosition (AVX,avy,AVZ);
    9. se ( ASX e ASY ) , em seguida,
    10. dxDrawText ( tostring ( getVehiclePlateText (aVehicle)),ASX,ASY,_,_, toColor (255,0,0,255),2,'Arial',"centro","centro");
    11. fim
    12. fim
    13. fim
    14. fim
    15. fim
    16. );
  3. I'm having a problem with this resource. Even altering the distance, it is possible to see the text of any place of the map. How to solve?I would like the text to be seen only by being close

    ---------------------------

    1. addEventHandler ( 'onClientRender',root,
    2. function ( )
    3. for _,aVehicle in next,getElementsByType ( [[vehicle]] ) do
    4. if aVehicle and getElementModel ( aVehicle ) == 429 then
    5. local aPx,aPy,aPz = getElementPosition ( localPlayer );
    6. local aVx,aVy,aVz = getElementPosition ( aVehicle );
    7. if ( getDistanceBetweenPoints3D ( aPx,aPy,aPz,aVx,aVy,aVz ) <= 10 ) then
    8. local aSx,aSy = getScreenFromWorldPosition ( aVx,aVy,aVz );
    9. if ( aSx and aSy ) then
    10. dxDrawText( tostring ( getVehiclePlateText ( aVehicle ) ),aSx,aSy,_,_,tocolor ( 255,0,0,255 ),2,'Arial','center','center' );
    11. end
    12. end
    13. end
    14. end
    15. end
    16. );
×
×
  • Create New...