Jump to content

WhoAmI

Members
  • Posts

    1,248
  • Joined

  • Last visited

Everything posted by WhoAmI

  1. It's changing. It's different on 1hp and 10hp. But those changes are small, that's why you can't see them that much.
  2. Some script has to turn all the time ghostmode on.
  3. It's correct but it's just too small.
  4. 1hp - 0,41° - so it's correct imo.
  5. Try it clientside addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) for _, v in pairs ( getElementsByType ( "player" ) ) do if ( v ~= localPlayer ) then local vehicle = getPedOccupiedVehicle ( v ) if ( isElement ( vehicle ) ) then setElementAlpha ( vehicle, 0 ) end end end end )
  6. addCommandHandler ( "invisible", function ( player ) for _, v in pairs ( getElementsByType ( "player" ) ) do if ( v ~= player ) then local vehicle = getPedOccupiedVehicle ( v ) if ( isElement ( vehicle ) ) then setElementAlpha ( vehicle, 0 ) end end end end ) But I think it should be client-side... Not sure. Try also: addCommandHandler ( "invisible", function ( ) for _, v in pairs ( getElementsByType ( "player" ) ) do if ( v ~= localPlayer ) then local vehicle = getPedOccupiedVehicle ( v ) if ( isElement ( vehicle ) ) then setElementAlpha ( vehicle, 0 ) end end end end ) Check also this code client-side.
  7. It should work normally. 100 * 41 / 100 = 41° Just change maxAngle to your value.
  8. WhoAmI

    need help

    Use if ( getElementModel ( attacker ) == VEHICLE_MODEL_HERE ) then after if ( getElementType ( attacker ) == "vehicle" ) then
  9. local row = guiGridListGetSelectedItem(playerList) if row then local gridText = guiGridListGetItemText(playerList,row,playerColumn) if gridText ~= "" then
  10. WhoAmI

    need help

    Ye, my mistake.
  11. WhoAmI

    need help

    addEventHandler ( "onPlayerDamage", root, function ( attacker ) if ( getElementType ( attacker ) == "vehicle" ) then killPed ( source ) end end ) @EDIT: Damn man! You was faster.
  12. Get text of selected item and compate it with == ""
  13. Change "=>" to ">="
  14. Will be in near future - I guess.
  15. WhoAmI

    MTA Problem!

    ESET NOD32 Antivirus 8.0.304.2. I really recommend it. Avast was eating my RAM and CPU in all possible ways. I had to change to this one, because my computer's parameters aren't good.
  16. WhoAmI

    MTA Problem!

    Yea, I'm using this anti-virus for a long time. It's really one of the best anti-viruses. However, it doesn't affect on your CPU and RAM much.
  17. Just refreshing this old script up.
  18. 100hp: 50hp: 1hp: Here is the code local screenX, screenY = guiGetScreenSize ( ); local maxAngle = 180; addEventHandler ( "onClientRender", root, function ( ) local hp = getElementHealth ( localPlayer ) * ( maxAngle / 100 ); dxDrawCircle ( ( screenX - 50 ) / 2, ( screenY - 50 ) / 2, 50, 5, 1, 0, hp, tocolor ( 255, 0, 0, 255 ), false ); end );
  19. There is no other good way to do that.
  20. <meta> <script src="ENTER_YOUR_FILE_NAME_HERE.lua" type="server" /> </meta> It won't work anyway, because you have to type coordinates (x, y, z) as numbers into functions.
  21. Use Solidsnake's code, but replace "%p" with " ".
  22. Just in case when in 'table' won't be another table, just to prevent errors.
×
×
  • Create New...