Jump to content

Anubhav

Members
  • Posts

    2,277
  • Joined

  • Last visited

Everything posted by Anubhav

  1. local alpha = 255 function bind( _, state ) if getPedWeaponSlot ( localPlayer ) == 6 then if ( state == "down" ) then alpha = 0 elseif ( state == "up" ) then alpha = 255 end for _, v in ipairs ( getElementsByType ( "object", root, true ) ) do if isElementAttachedToBone ( v ) then local id = getElementModel ( v ) if ( id == 1853 ) then setElementAlpha ( v, alpha ) end end end end end function bindk() if eventName == "onPlayerJoin" then bindKey(source, "aim_weapon", "both", bind) else for i, v in ipairs(getElementsByType("player")) do bindKey(v, "aim_weapon", "both", bind) end end end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), bindk) addEventHandler("onPlayerJoin", root, bindk)
  2. Anubhav

    Staff image

    Better read my functions. You copied the script. You also told it it was a old script of Castillo. 'ed? Caught!
  3. ghh, I can't even tell the exact amount. He created 3-4 topics in a day for the samething. Moderators should realy take a action!
  4. Anubhav

    Staff image

    Actually his code won't work at all. See the functions lel
  5. yoya, nobody is going to help you for free. Everyone's angry with you because you have been spamming one topic for more than 2 times and whenever we answer, you tell us a bullshit thing. You request your codes not try to make yourself. Go to 'Looking For Staff' section so someone can help. We are not your dogs that we will do everything you want. We help people who reply properly and don't request codes. They atleast try to do thier selves!
  6. ffs, you din't get me at all He forgot to define pk.
  7. Resource released! https://community.multitheftauto.com/ind ... s&id=10281
  8. Anubhav

    Help!

    It doesn't need. Its nowhere written.
  9. method 2 sachi me chal raha hein? o_O
  10. Thank you everyone! Some updates. Screenshots coming soon!
  11. Anubhav

    Help!

    kickPlayer doesn't need admin rights. Always see wiki, I'm not offending you.
  12. Congratulations. Your script is in top votings!
  13. I'm glad you visited this topic! https://community.multitheftauto.com/ind ... s&id=10281 So you are thinking what is it? Its a library. It means GUI+DX Library! We have planned somethings listed below 1. guiSetCursorType -> This gonna set your cursor to a cool design! Remember its gonna be fun using it! 2. guiSetType -> This will set your memo or editbox to a type. These are planned ones: numeric or alphabetic 3. dxCreateCenteredRectangle -> This will create a centered rectangle for you! 4. guiSetElementPosition -> Sets the gui elements position to a relative one. There will be types such as "left", "center", "right".etc Red = > 25% Green = 100% Yellow = 25% < --- THE AUTHORS ARE: Blaze and me. The resource is WIP, Work in Progress! Once done, we'll release it! We are waiting for your suggestions! Exported functions: gui-memo/gui-edit string guiSetType( gui-memo or gui-edit, mode ) Argument 1: This requires a gui memo or a gui edit box. Argument 2: This requires a string. Supported modes are: 'numeric' and 'alphabetic' int int int int int int boolean dxCreateCenteredRectangle(width, height, r, g, b, a, postGUI) Argument 1: This is the normal width of the dx rectangle. Argument 2: This is the normal height of the dx rectangle. Argument 3: The Red color of rectangle. Argument 4: The Green color of rectangle. Argument 5: The blue color of rectangle Argument 6: The alpha of the rectangle Argument 7: Bring it infront of every gui. If yes then true otherwise false. Every argument is requiered! string guiSetCursorType(url) Argument 1: A url of image to set cursor's image. I suggest images without background!!! or some in-built cursor names: Star AOE normal the normal mta one Weather Blue Crocodile gui-element string guiSetElementPosition(element, where) Argument 1: Any gui-element for settings its position. Argument 2: Where should it go. Supported where's are: 1. top 2. down 3. right 4. left 5. top-right 6. top-left 7. center Releasing it on community soon NOTE 1: dxCreateCenteredRectangle must be added on onClientRender or onClientPreRender! NOTE 2: The functions starting with gui DO NOT SUPPORT DX!
  14. Anubhav

    The last reply

    /me ends it! ended hh
  15. Anubhav

    Haw!

    OMFG. You told me at skype you are a expert in PHP? And its how not haw. Lines like MTA:SA and PHP and callRemote. None gives realy whole code for this.
  16. Anubhav

    The last reply

    . The last reply it ends Lol!
  17. Anubhav

    isPedSkin

    Wait I guess I posted the getElementModel. Must have not clicked the submit button!
×
×
  • Create New...