Jump to content

darhal

Members
  • Posts

    582
  • Joined

  • Last visited

Everything posted by darhal

  1. explain more please to trigger event use triggerEvent
  2. use this function -- Plz set this first local currentResolutionX = 800--Your Resolution X the one wich in it u made the window local currentResolutionY = 600 --Your resolution Y the one wich in it u made the window GUIEditor = { button = {}, window = {} } local x, y = guiGetScreenSize(); GUIEditor.window[1] = guiCreateWindow(currentResolutionX(359), currentResolutionY(224), currentResolutionX (312), currentResolutionY(252), "Medic 1.0 - ZP", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(102, 55, 110, 57, "Medical Treatment\n500$", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(102, 165, 110, 58, "Close", false, GUIEditor.window[1]) function correctResolutinY(y) if y then return (y/600)*h end end function correctResolutinX(x) if x then return (x/800)*w end end please dont forget to change the cyrrentResoltuion x and y to the resolution which using it u create the GUI this function I mean correctResolutionX and Y will work with DX too
  3. Whats ur problem mate I know how to script i know thing u dont even know . I m scripting 2 years ago without even internet ! And u can see my posts i m helping people So ....
  4. Ok I will check it
  5. I use 83 mb of 2 gb of ram
  6. How using shutdown function ?
  7. But I have 167 resources also the problem triggerd when some players are online ? and what about the question 1)
  8. Hello everyone ! I have 3 quetions 1) may server sometimes shutdown automatically why ? 2)every specific period of time the world 'ERROR' show in server console how to fix it ? 3) can I disable GTA house furniture so I can made my own furniture system ? I mean when u enter a house you will find it empty ?
  9. I said i made it !!! It s made by me :@ 100 % and see the Bottom-left of the screen to see what it do !
  10. viewtopic.php?f=108&t=87563
  11. darhal

    The last reply

    viewtopic.php?f=108&t=87563
  12. Introduction Hello there, I made this script for my server CUP 3 longtime ago and now I m publishing it it s easy resource wich output information on your screen This script is made by me 100% exported function are : modTextBar (Shared) How to use ? Use this export function inside your script client side : exports.modText:modTextBar(string id, string message, number r, number g, number b) and for server Side use this exports.modText:modTextBar(string id, string message, element visibleTo, number r, number g, number b) to remove the text for the screen use this function with empty or "" message argument Screenshots http://imgur.com/SHSTeUT,yaZLnKh http://imgur.com/SHSTeUT,yaZLnKh#1 Known Bugs Nothing for the moment Download link : https://community.multitheftauto.com/index.php?p=resources&s=details&id=11410 thanks for reading
  13. darhal

    The last reply

    who said? i won man. no u dont
  14. darhal

    quetion

    I m attaching this to onClientKey event and infact this a silly quetion that i will not ask it again
  15. darhal

    quetion

    any way the problem solved I triggerd the event to server side and then create the marker thx all
  16. darhal

    quetion

    I will test edit: only show for one player
  17. darhal

    quetion

    when you create it server side or client side ?
  18. darhal

    quetion

    I know that too but is marker sync when it s created client sided ?
  19. try this ocal color = tocolor(255, 255, 255, 255) function onClientCursorMove( x, y, absX, absY ) if isInBox( absX, absY ,482, 482 + 124, 330, 330+124) then color = tocolor(255, 0, 0, 255) else color = tocolor(255, 255, 255, 255) end end addEventHandler( "onClientCursorMove", getRootElement( ), onClientCursorMove ) addEventHandler("onClientRender", root, function() dxDrawText("RaysMTA", 482, 330, 537, 344, color, 1.00, font) end ) function isInBox( x, y, xmin, xmax, ymin, ymax) if x and y and xmin and xmax and ymax and ymin then return x >= xmin and x <= xmax and y >= ymin and y <= ymax end end
×
×
  • Create New...