Jump to content

denny199

Members
  • Posts

    877
  • Joined

  • Last visited

Everything posted by denny199

  1. "The mta team" should actually start a voting what the scripters want, -Make it for servers OPTONAL to load the scripts, so no warning pops up with the text that it may not work in future versions =OR= -Leave it like this with much lost community (https://community.multitheftauto.com/) work, if you stay it like this, then I might be able to decompile all the compiled work which is NOT compiled nor encrypted with the MTA:SA's compiler. to let the community work still compability with the new versions. And you guys should stay a bit more on-topic if it was me (I can't say this due forum rules here, yes I know them), the guy who's stealing is indeed a retard, yes. But even after compiling your client resource, then it would be still addable to his server, if the whole resource is client-side based ofcourse.
  2. You can't use variables with dxDrawing. Removing all drawing with the render: function drawFunction() dxDrawRectangle(0, 0, 218, 720, tocolor(0, 0, 0, 250), false) end addEventHandler("onClientRender", root, drawFunction ) function removeDraw() removeEventHandler("onClientRender", root, drawFunction ) end Or you can hide it on 2 ways: Variable way: drawRec = true function drawFunction() if drawRec == true then dxDrawRectangle(0, 0, 218, 720, tocolor(0, 0, 0, 250), false) end end addEventHandler("onClientRender", root, drawFunction ) function switchDraw() drawRec = not drawRec end Or the alpha way: local recAlpha = 255 function drawFunction() dxDrawRectangle(0, 0, 218, 720, tocolor(0, 0, 0, recAlpha), false) end addEventHandler("onClientRender", root, drawFunction ) function switchAlpha() if recAlpha == 255 then recAlpha = 0 elseif recAlpha == 0 then recAlpha = 255 end end
  3. guiSetAlpha not working with GUI Static Images You are wrong, it's working. The values are from 0 to 1, like I said earlier before. That doesn't make any sense If you put it on client side, then it will execute if the client's pc has loaded the client script. It does, you loop the elements that are players and send to each one's client-side the trigger. (correctly setup should work, but i would rather use the player variable than all elements, but still should work) So you want to loop all players on the server side and then trigger X amount of players to the client, so if you have 50 players on your server, you are sending 50 times a trigger to the client??? Better use "root" instead.
  4. That doesn't make any sense If you put it on client side, then it will execute if the client's pc has loaded the client script.
  5. You can't draw images on server-side.
  6. You guys are doing serveral things wrong. When using guiSetAlpha alpha: The visibility/transparency of the GUI element. Ranges from 0 (fully transparent) to 1 (fully opaque). And you are using guiCreateStaticImage and dxDrawImage wrong, it only has screenX, screenY, Width, and no height! So: local alpha = 255 addEventHandler ( "onClientRender", root, function ( ) dxDrawImage ( 690, 200, 100, 100, "R1.png", 0, 0, 0, tocolor ( 255, 255, 255, alpha ) ) -- starts at 690 pixels from the Xscreen -- then starts at 200 pixels from the Y --draw is 100 pixels to the X ( width ) --and 100 pixels to the Y ( height ) if ( alpha > 25 ) then alpha = alpha - 1 end end ) OR: local alpha = 1 Image = guiCreateStaticImage( 690, 200, 100, 100, "R1.png", false ) addEventHandler ( "onClientRender", root, function ( ) if ( alpha >= 0 ) then alpha = alpha - 0.1 guiSetAlpha ( Image, alpha ) end end)
  7. "The next step for Phonebloks" video: More info about "project ara" (see video above) http://makewithmoto.com/post/6543312134 ... roject-ara
  8. GUI = { window = {}, label = {}, memo = {} } window = guiCreateWindow(74, 0, 1024, 703, "Zombie Outbreak Reloaded - Official Gangs/Squads", false) guiWindowSetSizable(window, false) GUI.label[1] = guiCreateLabel(126, 32, 806, 96, "Search And Rescue - Level 5", false, window) guiSetFont(GUI.label[1], "sa-gothic") guiLabelSetColor(GUI.label[1], 0, 5, 255) GUI.label[2] = guiCreateLabel(99, 128, 852, 63, "Outlaws Of Mayhem - Level 5", false, window) guiSetFont(GUI.label[2], "sa-gothic") guiLabelSetColor(GUI.label[2], 235, 0, 0) GUI.label[3] = guiCreateLabel(162, 230, 848, 66, "The Phantom Aces - Level 4", false, window) guiSetFont(GUI.label[3], "sa-gothic") GUI.label[4] = guiCreateLabel(135, 350, 860, 112, "Special Military Unit - Level 2", false, window) guiSetFont(GUI.label[4], "sa-gothic") guiLabelSetColor(GUI.label[4], 19, 24, 255) GUI.label[5] = guiCreateLabel(243, 462, 859, 92, "Alpha Team - Level 1", false, window) guiSetFont(GUI.label[5], "sa-gothic") guiLabelSetColor(GUI.label[5], 19, 255, 46) GUI.label[6] = guiCreateLabel(437, 103, 417, 25, "Leader: Devildog", false, window) guiSetFont(GUI.label[6], "default-bold-small") GUI.label[7] = guiCreateLabel(407, 306, 231, 15, "Leaders: Atlas, Cyanide, Mayuri", false, window) guiSetFont(GUI.label[7], "default-bold-small") GUI.label[8] = guiCreateLabel(440, 197, 98, 15, "Leader: Michaell", false, window) guiSetFont(GUI.label[8], "default-bold-small") GUI.label[9] = guiCreateLabel(438, 416, 225, 15, "Leader: Chilenoazul", false, window) guiSetFont(GUI.label[9], "default-bold-small") GUI.label[10] = guiCreateLabel(442, 527, 221, 17, "Leader: Shaman", false, window) guiSetFont(GUI.label[10], "default-bold-small") GUI.label[11] = guiCreateLabel(186, 572, 777, 91, "Secret Service - No Level", false, window) guiSetFont(GUI.label[11], "sa-gothic") guiLabelSetColor(GUI.label[11], 0, 206, 231) GUI.label[12] = guiCreateLabel(442, 631, 220, 15, "Leader: Haze", false, window) guiSetFont(GUI.label[12], "default-bold-small") button = guiCreateButton(302, 695, 540, 95, "Close", false, window) guiSetFont(button, "sa-gothic") -- bug here addEventHandler("onClientGUIClick",button,CloseGui) end ) function CloseGui () guiSetVisible(window, false) showCursor(false) end addCommandHandler("groupinfo", function() -- you had a function name here guiSetVisible(window, true) setTimer ( showCursor,1000,1,true ) end )
  9. A: "D" Q: The star or the circle? ( if you know what I mean ^^ )
  10. function md () local x3D, y3D = getScreenFromWorldPosition ( 2184.70, -3279.12, 1684.65 ) if x3D and y3D then dxDrawText ( "PED1", x3D, y3D, 500,500,tocolor ( 255, 255, 255, 255 ), 1, "pricedown" ) end end addEventHandler ("onClientRender", root, md )
  11. You need to use: https://wiki.multitheftauto.com/wiki/CreateColRectangle -- the position where you want to start the rendering https://wiki.multitheftauto.com/wiki/On ... olShapeHit -- start rendering https://wiki.multitheftauto.com/wiki/On ... ShapeLeave --stop rendering https://wiki.multitheftauto.com/wiki/RemoveEventHandler -- to remove the event "onClientRender" If you need help with the colshape, then feel free to ask me, or just post your used code here.
  12. Arrogant?, now try it without spamming,useless posting,bumping on topics with crap.
  13. Are we crime partners togheter? 0.o (this stats is awesome btw, good laugther here)
  14. 20 hours to go OH MY GOWDD
  15. denny199

    Rankings

    Why? I find it funny
  16. Take a look at this: https://community.multitheftauto.com/in ... ls&id=1030
  17. 3: Torso 4: Ass 5: Left Arm 6: Right Arm 7: Left Leg 8: Right leg 9: Head https://wiki.multitheftauto.com/wiki/GetBodyPartName https://wiki.multitheftauto.com/wiki/OnPlayerWasted As far I know these are valid bodyparts???? -- if i'm right.
×
×
  • Create New...