Jump to content

xXMADEXx

Members
  • Posts

    2,718
  • Joined

  • Last visited

Everything posted by xXMADEXx

  1. You need to trigger an event back to the client using triggerClientEvent.
  2. It looks like you're trying to copy CiT, and your forum topic is extremely unprofessional...
  3. xXMADEXx

    Dx

    You're trying to add the event before the button is created. function dxPanel() ourButton = guiCreateButton(499, 451, 290, 37, "", false) guiSetAlpha(ourButton, 0.00) guiSetProperty(ourButton, "NormalTextColour", "AA000000") dxDrawRectangle(369, 289, 525, 397, tocolor(0, 0, 0, 170), false) dxDrawText("Click The Button", 502, 450, 789, 488, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "left", "top", false, false, false, false, false) showCursor(true) addEventHandler ( "onClientGUIClick", ourButton, openOurMemo ) end function bindTheKeys () bindKey ( "F1", "down", dxPanel ) end function Memo() ourMemo = guiCreateMemo(336, 332, 632, 382, "is Awesome", false) end function openOurMemo() if ( guiGetVisible ( ourMemo ) == false ) then guiSetVisible ( ourMemo, true ) local currentState = isCursorShowing () local oppositeState = not currentState showCursor ( oppositeState ) end end
  4. You can use these: -- Events onVehicleEnter onVehicleExit -- Functions setTimer resetTimer
  5. Sounds like the backpack element doesn't change interior with the player. Wherever the script is that attaches the backpack to the player, you need to make it check the players dimension and interior every x milliseconds and set it to the players interior and dimension.
  6. What does debugscript (/debugscript 3) say? I don't see any problems, as long as 'variable' is assigned to a GUI element.
  7. Check debugscript for any errors. I've did extensive testing with the download, it should work fine. The mods spawn into the ground because they kinda jump when MTA replaces the models. You can modify the resource so that when the mods are replaced, you can set the position to X, Y, Z + 1
  8. Make sure port 22005 is open. Use 'openports' in console.
  9. xXMADEXx

    I Need help

    What line is this error on?
  10. xXMADEXx

    Help

    You can just add: <object name="resource.*"></object> to the Admin ACL group.
  11. You need to check the button state. showCursor(true) local screenW, screenH = guiGetScreenSize() addEventHandler("onClientRender", root, function () dxDrawRectangle(screenW * 0.2875, screenH * 0.3783, screenW * 0.4375, screenH * 0.0933, tocolor(0, 0, 0, 200), false) dxDrawText("360 noscope button", screenW * 0.3625, screenH * 0.4050, screenW * 0.6687, screenH * 0.4550, tocolor(255, 255, 255, 255), 2.00, "default-bold", "left", "top", false, false, false, false, false) end ) addEventHandler ( "onClientClick", root, function ( Button, State, ScreenX, ScreenY ) if ( State == "down" and ScreenX >= screenW * 0.2875 and ScreenX <= screenW * 0.2875 + screenW * 0.4375 and ScreenY >= screenH * 0.3783 and ScreenY <= screenH * 0.3783 + screenH * 0.0933 ) then outputChatBox ( "360MLG Noscope has been clicked",255,0,0 ) end end )
  12. xXMADEXx

    [Help]Logo

    There is also this script: https://community.multitheftauto.com/in ... ls&id=4600
  13. Just uploaded version 1.2.1 of this resource. The resource has a little bit of changes. It now supports vehicle, skins, and weapon mods. Please view the "Installing Mods" section or open smods.xml to learn how to install mods in the new version. I also fixed a problem when the server was failing to download new mods until the server was restarted. Download @ https://community.multitheftauto.com/in ... s&id=11265
  14. Thanks, it works. Kinda strange.
  15. You can use Windows Explorer as an FTP program. Simply open Windows Explorer, clicking the location bar thing at the top and type in 'ftp://server_ip:port' If you get an authorization error, right Windows Explorer and click "Login As..." If you still cannot connect to your FTP server, the error is most likely something to do with the host or your ISP.
  16. xXMADEXx

    [Help]Logo

    You mean something like this? https://community.multitheftauto.com/in ... ls&id=1300 Be sure to check the community: https://community.multitheftauto.com
  17. Use the file tag <https://wiki.multitheftauto.com/wiki/Meta.xml> and then you can use the engine functions to replace it.
  18. I do have my facts right... If it was paid for it wouldn't be a nulled version. That looks like an image saying you bought a host, not the forum software.
  19. I'm not sure why but I actually just now discovered that if after the mods are added to meta.xml and it is giving the error, if you go into the meta and change anything (eg. just put another space somewhere) and restart the resource again the files will be able to download just fine. This is a very strange bug. Ok. 1. Download & extract this resource: 2. Start server, when server is started start the ModDownloader resource 3. Once the ModDownloader resource has started open the following file: ModDownloader/smods.xml 4. Remove the commented line, on line 4, resulting in this: <mods> <vehicles> <mod name="1951 Chevy" txd="sadler.txd" dff="sadler.dff" replace="543" /> </vehicles> <skins></skins> <weapons></weapons> </mods> This will enable the mod 5. Restart the 'ModDownloader' resource, it will add the mod to meta.xml then restart itself. Once it has started again it should give an error from downloadFile saying that the file doesn't exist. I show how to reproduce it in this video:
  20. Yes. The script automatically adds that when it detects a new file then restarts the resource. I've tried restarting the resource several times but it still gives the error.
  21. Oh my bad, I accidentally copied the wrong link http://www.mediafire.com/download/bdxwm ... loader.zip
  22. In the 'onClientMarkerHit' function, check to see if 'hitPlayer' is localPlayer.
  23. Resource: https://www.mediafire.com/folder/35ez2e ... _Downloads Video: I think the issue is that the server isn't adding new files to the http-client-files folder. Just after adding a mod, I screenshotted the folders. Here is http-client-files: and here is the resources folder:
  24. xXMADEXx

    NEW

    It seems like a bit much just to get your position. Something like this would probably work a little bit better. addCommandHandler ( 'getpos', function ( _, round ) if not round then round = 'yes' end local x, y, z = getElementPosition ( localPlayer ) local pos = nil if ( round == 'yes' ) then pos = table.concat ( { math.round ( x, 2 ), math.round ( y, 2 ), math.round ( z, 2 ) }, ", " ); else pos = table.concat ( { x, y, z }, ', ' ) end outputChatBox ( "Coordinates: "..pos.." (Copied!)", 255, 255, 0 ) setClipboard ( pos ) end ) function math.round(number, decimals, method) decimals = decimals or 0 local factor = 10 ^ decimals if (method == "ceil" or method == "floor") then return math[method](number * factor) / factor else return tonumber(("%."..decimals.."f"):format(number)) end end And it should also be uploaded to the community. https://community.multitheftauto.com
×
×
  • Create New...