LopSided_

Members
  • Content count

    262
  • Joined

  • Last visited

  • Days Won

    1

LopSided_ last won the day on August 17

LopSided_ had the most liked content!

Community Reputation

60 Popular

3 Followers

About LopSided_

  • Rank
    Peon

Details

  • Gang
    EPG
  • Location
    UK

Recent Profile Visitors

1,267 profile views
  1. what is the important thing in computer

    You're only as fast as your slowest component. Everything in your PC is important, however the main things; Plenty of RAM Fast CPU Fast Disk (SSD pref) Powerful GPU If you were looking for suggestions on PCs to buy (I assume you're looking for pre-built), then you might want to include your budget.
  2. Draw An Box For Hydra

    https://wiki.multitheftauto.com/wiki/DxDrawImage3D If you read the comments I left in my code you would realize you need the function from that wiki page. Again, this stems back to the original problem of you having no clue what you're doing. Learn the basics.
  3. Draw An Box For Hydra

    My code works fine, as does the code that Dutchman101 posted. The only thing not working here is you; take some time out to learn the basics of Lua with the tutorials & guides I previously linked.
  4. Draw An Box For Hydra

    Learn to walk before you try to run.
  5. Draw An Box For Hydra

    Sure, the full line is here https://wiki.multitheftauto.com/wiki/DxDrawImage We aren't here to write code for you. If that's what you want, please head over to the Looking for staff section where you can hire a scripter. Listen to what I told you, and learn the BASICS - do you want to be asking others for help all your entire life and never doing anything yourself? What would happen if everyone fell of the face of the earth? Nobody to sponge from then, buddy.
  6. Draw An Box For Hydra

    Then all you need to do is replace line 35 with dxDrawImage, utilizing the sx and sy vars. As you stated before, you have "sold some of your scripts"; "many cool scripts" - so you shouldn't have any trouble doing this.
  7. About SLUA

    I assume you're talking about file extensions - people might name their script *.slua (or .clua for that matter) to easily sort files in a directory. Other than that it's no different to your normal MTA Lua. You could have clientside code in a script called "code.slua" and it'd function fine - what matters is the definitions in the meta (type="server/client") atleast i'm pretty sure of it...
  8. Help

    https://wiki.multitheftauto.com/wiki/GuiSetInputEnabled or https://wiki.multitheftauto.com/wiki/GuiSetInputMode
  9. Draw An Box For Hydra

    This really isn't hard to do (if I understand correctly what you're trying to achieve, that is). Below is a basic example to help you get started, however I really suggest that you slow down a pace and go back to basics - starting with this and more importantly, this. https://wiki.multitheftauto.com/wiki/DxDrawImage3D https://wiki.multitheftauto.com/wiki/Matrix requires <oop>true</oop> in meta.xml function drawBox() local vehicle = getPedOccupiedVehicle(localPlayer) --Vehicle Element (in this case, the hydra) if not vehicle or getElementModel(vehicle) ~= 520 then return end --if not in vehicle or vehicle model is not hydra then return local matrix = vehicle.matrix --vehicle matrix, self explanatory local forward = matrix.position + matrix.forward * 5 --get the position 5 units infront of vehicle dxDrawImage3D(forward, 20, 20, "path/to/image.png", tocolor(255,255,255,255)) --requires function from dxDrawImage3D wiki page end addEventHandler("onClientRender", root, drawBox) Not tested, but the basic idea is there - it should draw an image in 3d space slightly infront of the hydra, which moves along with it.
  10. GUI skin?

    https://forum.mtasa.com/forum/115-custom-gui-themes/
  11. getSoundMetaTags

    Probably because the song doesn't have any of the data? If you go to the mp3 file itself and right click > properties > details, does it have title / artist data? @koragg should work for any sound element, whether it be a stream or local file.
  12. table sort

    table.sort(myTable, function(a, b) return a[1] > b[1] end) I think...
  13. string.find

    local invalid_chars = {"#", "?", "!"} addEventHandler("onPlayerConnect", root, function(nick) for i=1,#invalid_chars do local escape if not string.match(invalid_chars[i], "[^a-zA-Z0-9]") then escape = "%" else escape = "" end if nick:find(escape..invalid_chars[i]) then cancelEvent(true, "Change nickname!") return end end end) I don't know about optimal, but it's definitely easier to manage. updated code to allow for escaping special characters on :find
  14. Discord won't install in my server

    Then you should continue with the steps, and install node/npm using yum or apt-get
  15. [HELP]ACL Event

    No, but you can easily make them yourself. Make a separate resource called acl-events or such, follow this example; __aclGroupAddObject = aclGroupAddObject; function aclGroupAddObject ( ... ) if ( __aclGroupAddObject ( ... ) ) then triggerEvent ( "onACLGroupObjectAdd", root, ... ); return true end return false end original post; Then you can export the __aclGroupAddObject function (and any other functions you overwrite) and use it in your other resources instead of the original aclGroupAddObject.