Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. NoAimerWeaponIDs = { [28] = true, [32] = true, [29] = true, [22] = true, [23] = true, [24] = true, } function crosshair ( ) if NoAimerWeaponIDs [ getPedWeapon ( localPlayer ) ] then showPlayerHudComponent ( "crosshair", not isPlayerHudComponentVisible ( "crosshair" ) ) end end addCommandHandler ( "togtarget", crosshair )
  2. onClientMouseEnter onClientMouseLeave guiStaticImageLoadImage
  3. I don't understand now, you want to disable the crosshair for the weapons in that table or enable it?
  4. NoAimerWeaponIDs = { [28] = true, [32] = true, [29] = true, [22] = true, [23] = true, [24] = true, } function crosshair ( ) if NoAimerWeaponIDs [ getPedWeapon ( localPlayer ) ] then showPlayerHudComponent ( "crosshair", false ) else showPlayerHudComponent ( "crosshair", true ) end end addEventHandler ( "onClientPlayerWeaponSwitch", getRootElement(), crosshair ) addCommandHandler ( "togtarget", crosshair )
  5. You want to let the player choose which weapons will have crosshair?
  6. What exactly are you trying to achieve?
  7. You are writing the new slot along with the command, right? also, the "newSlot" result will be always a string, convert it to a number.
  8. Castillo

    Rank

    Render the image same way as in the scoreboard.
  9. function tilisiirto2 ( thePlayer, command, target, amount ) local target = getPlayerFromName ( target ) if ( target ) then local amount = tonumber ( amount ) local account = getPlayerAccount ( thePlayer ) local targetAccount = getPlayerAccount ( target ) if ( not isGuestAccount ( account ) ) then local cash = tonumber ( getAccountData ( account, "nordea-cash" ) ) or 0 local targetCash = tonumber ( getAccountData ( targetAccount, "nordea-cash" ) ) or 0 if ( cash >= amount and amount > 0 ) then local money = ( targetCash + amount ) setAccountData ( targetAccount, "nordea-cash", money ) --[[ + money to target --]] local money1 = ( cash - amount ) setAccountData ( account, "nordea-cash", money1 ) outputChatBox ("#0000FF[Nordea]#00FF00 ".. amount .."$ siirretty pelaajan ".. getPlayerName ( target ) .." tilille.", thePlayer, 0, 255, 0, true ) outputChatBox ("#0000FF[Nordea]#00FF00 Sait ".. amount .."$ pelaajalta ".. getPlayerName ( thePlayer ) .." tilillesi.", target, 0, 255, 0, true ) local bankSayAmount = getAccountData ( targetAccount, "nordea-cash" ) if ( bankSayAmount ) then outputChatBox ( "#ffff00[Nordea]#FFFF00 Uusi saldo on ".. bankSayAmount .."$", target, 255, 255, 0, true ) else outputChatBox ( "#0000FF[Nordea]#FF0000 Syöttämäsi rahamäärä ei ole kelvollinen.", thePlayer, 255, 0, 0, true ) end end end end end addCommandHandler ( "tilisiirto", tilisiirto2 )
  10. Castillo

    Rank

    Same way as scoreboard does it.
  11. You are talking about the model/texture?
  12. The design of the main menu...?
  13. Castillo

    Fastrope

    Download this resource: https://community.multitheftauto.com/in ... ls&id=1873
  14. Castillo

    Rank

    What are you trying to do?
  15. You can use onVehicleDamage > setElementHealth.
  16. You mean the design of it?
  17. No hace falta usar element data, y menos el evento onElementDataChange que consume recursos del servidor si usas mucho element data, usa una tabla y listo.
  18. Castillo

    ACL teamsaver

    setTimer setTeamColor
  19. DDseventhMarker = createMarker ( -1410, 998, 1025, "corona", 2, 250, 0, 250, 255 ) setElementInterior ( DDseventhMarker, 15 ) function DDrepair ( markerHit ) if ( markerHit == DDseventhMarker ) then local vehicle = getPedOccupiedVehicle ( source ) if ( vehicle and not isTimer ( hitTimer ) ) then setMarkerColor ( DDseventhMarker, 250, 0, 250, 0 ) fixVehicle ( vehicle ) hitTimer = setTimer ( setMarkerColor, 30000, 1, DDseventhMarker, 250, 0, 250, 255 ) end end end addEventHandler ( "onPlayerMarkerHit", root, DDrepair )
  20. That was the reason for the difference between client and server.
  21. https://wiki.multitheftauto.com/wiki/IsElementMoving
  22. I doubt that'll work, Vector. @golanu: Try toggleControl.
×
×
  • Create New...