Jump to content

MAB

Members
  • Posts

    313
  • Joined

  • Last visited

Everything posted by MAB

  1. the lookAt* parameters are optional, he doesn't need to pass it. thanks. working now
  2. The problem is that the camera matrix function is not working. The screen keeps being blank. Client : local matrixs = { {794.07562,-1344.58557,99.22220}, {-2469.11304,2291.59033,80.14544}, {1803.86255,1500.08813,67.13750} } function onStart () local px,py,pz = unpack(matrixs[math.random(1,#matrixs)]) showCursor(true) setCameraMatrix(px,py,pz,px,py,pz) end addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),onStart)
  3. If you have got any idea about how to make a DirectX Grid list or Scroll bar please share.
  4. so if i went back with the caret i will find the old text? is it even going to show the new text?
  5. I totally forgot about that one The bounding box is the area of the text, if you use the GUI Editor this is seen as pink lines. Anything that goes outside of this area will not be seen. aha understood that but i don't want it to be invisible... look at my direct x tutorial the go to the dx edit box spoiler i want it to show the old text and when i go back with the caret, i find the old text again.... like the mta normal edit box and the dx edit box resource i talked about....
  6. don't understand it.. example please... and use a dx rectangle as the place that the text won't leave .. please
  7. how to adjust the bounding box? (what bounding box) ?!
  8. lets take a look at this resource and this is the topic of it. the text in the box never leaves the box and when you go back with the caret line you find the old text. how did he do that? how to make a dx edit box never leave an area whatever its length? and without removing any letter of it.
  9. MAB

    Help with HUD

    can you please show me an example? because i don't understand it well... it would be good if you uploaded the example images... thanks
  10. MAB

    Help with HUD

    lets take a look at the circles of this resource : https://community.multitheftauto.com/index.php?p=resources&s=details&id=11880 now. does anyone know how was the circles made?
  11. MAB

    question

    how to bind 2 keys? i mean when the player press 2 keys in one time the script do a function? how to bind a key to make a function when it is double pressed?!
  12. MAB

    [Help] Question

    1. After making a table, how to check if a element is in that table?
  13. the password argument is optional.
  14. the problem is that the "unbind" function isn't working.... local sf = createMarker (-1882.83887,865.99182,36.17188,"arrow",2,0,0,255,255) out = createMarker (161.37592,-96.44353,1002.80469,"arrow",2,0,0,255,255) setElementInterior(out,18) createBlipAttachedTo(sf,45) local dir = 0.020 setTimer( function() if dir == -0.020 then dir = 0.020 elseif dir == 0.020 then dir = -0.020 end end,1000,0 ) function float () local x,y,z = getElementPosition(sf) local place = z + dir setElementPosition(sf,x,y,place) local x2,y2,z2 = getElementPosition(out) local place2 = z2 + dir setElementPosition(out,x2,y2,place2) end addEventHandler("onClientRender", root,float) function bind (hit,dim) if getElementType(hit) == "player" and not isPedInVehicle(hit) and dim == true then bindKey ("h","down",onhit) end end addEventHandler("onClientMarkerHit",sf,bind) function unbind (hit) if hit == localPlayer then unbind("h","down",onhit) end end addEventHandler("onClientMarkerLeave",sf,unbind) function onhit () local x,y,z = getElementPosition(localPlayer) setElementData(localPlayer,"clo.x",x) setElementData(localPlayer,"clo.y",y) setElementData(localPlayer,"clo.z",z) fadeCamera(false) toggleAllControls(false) setElementFrozen(localPlayer,true) setTimer(enter,2000,1,localPlayer) unbindKey ("h","down",onhit) end function enter (player) if isElement(player) then setElementFrozen(player,false) toggleAllControls(true) fadeCamera(true) setElementInterior (player,18,161.48351,-94.52599,1001.80469) toggleControl ("fire",false) toggleControl ("aim_weapon",false) end end function outside (hit) fadeCamera(false) toggleAllControls(false) setElementFrozen(hit,true) setTimer(onleave,2000,1,localPlayer) end addEventHandler("onClientMarkerHit",out,outside) function onleave (player) if isElement(player) then setElementFrozen(player,false) toggleAllControls(true) fadeCamera(true) toggleControl ("fire",true) toggleControl ("aim_weapon",true) local x = getElementData(player,"clo.x") local y = getElementData(player,"clo.y") local z = getElementData(player,"clo.z") setElementInterior (player,0,x,y,z) end end
  15. MAB

    custom cross hair

    Karim ik it is working but i don't want a moving five points i want just a red point that doesn't move when i shoot and that red point is my .png
  16. MAB

    custom cross hair

    You tell me? If it's not hard, why are you posting for help? How about you chill? YOU are the one who's failing, and THEY are trying to help you. Your English isn't helping either. why don't u help? u just show up when it is time to lock a topic
  17. MAB

    custom cross hair

    here is a pic of it.. idk how to share it http://prntscr.com/8f9vz4
  18. MAB

    custom cross hair

    -_______- i said i want to replace my .png with the fking cross hair -____- these codes does the same of the other codes up there the fking codes create a dam white point and 4 red points around it that is 4 of my .png and also that white point goes when i shoot and the 4 .pngs moves -____- just want to replace my .png which is a god dam red point with the gta cross hair .. is that hard?!
  19. MAB

    custom cross hair

    you didn't mention what is the resourceRoot anyway i did and it still not working
  20. MAB

    custom cross hair

    this light isn't what i wanted.... it creates four of my .png around a white point and when i shoot they moves.. this wasn't what i needed.. i want to replace the gta cross hair with my .png just that .. my .png is just a red point
  21. MAB

    custom cross hair

    someone can help please?
×
×
  • Create New...