Jump to content

IIYAMA

Moderators
  • Posts

    6,085
  • Joined

  • Last visited

  • Days Won

    215

Everything posted by IIYAMA

  1. IIYAMA

    MG nest

    You should trying to understand it. And learn some basic lua on other sites. Those lines you posted here are not even close to what you want to make. What you atleast need to look at are: Variables, what are they And how do they look like? Function, what are they.........
  2. IIYAMA

    MG nest

    setWeaponOwner has been disabled(This function was disabled in revision r4872. ) https://wiki.multitheftauto.com/wiki/SetWeaponOwner Not sure if it is still disabled. The code you show now doesn't turn the minigun to your direction. You can't give it infinity ammo, but you can fake that by increase the value of setWeaponClipAmmo. 'owner (dueno) to my account name (guitarist5150)' How? Dueno must be a userdata value from the player, the account name isn't enough. "outputChatBox(tostring(dueno))--And this say it in the chatbox" Dueno isn't a name, but the userdata value of a player. Or false/nil if the player doesn't exist. A userdata value is a specific ID that the server gives to elements. As you know a computer doesn't think like we do. They use ID's to prevent double naming. Example what would happen when we would use names instead of id's/userdata's: In the real world there are a lot of people named as 'Peter'. If there are 4 players in the server with the name 'peter', it probably can't figure out which player to kick or it will just simply kick them all. Same goes for other elements types like objects/vehicles/peds/markers etc. they all have userdata(id's) values.
  3. IIYAMA

    MG nest

    I probably can figure out what is required to make it. But if you want my help with a complex script like this, you need at least the basic knowledge of lua and you have to start trying making it yourself. That are my two requirements for help with complex resources.
  4. IIYAMA

    MG nest

    Well afaik, that kind of script isn't yet on the community.
  5. IIYAMA

    MG nest

    This is not the right section to post this, the resource section should make more sense. But you are lucky that I know a resource that can do that: https://community.multitheftauto.com/in ... ils&id=233 But this has nothing to do with miniguns, those are simply rockets flying to a location.
  6. I don't know why, (never tried it). But I saw this function: https://wiki.multitheftauto.com/wiki/Se ... ringPaused It might be handy to put the browser on a break while animating it.
  7. IIYAMA

    [HELP] Question

    getElementPosition getDistanceBetweenPoints2D -- getDistanceBetweenPoints3D < flying setElementData setTimer -- or addEventHandler("onClientRender" --( + getTickCount() )
  8. triggerEvent's are slow, so call function or exports. Yet I recommend exports. , because you don't have to use the function getResourceFromName(less code to write). Every function in your code is a delay. > "UP: interested in speed, if possible."
  9. I tried, but it seems you don't take me seriously. Just letting you know the reason why I stopped helping you, there is nothing wrong with that. 'I can just leave' but then you don't know the reason why I am not replying any more. (and you will be waiting waiting waiting...) It is for your benefit, not for mine. Nice that you figured it out.
  10. As Noki said it is recommended to put the ped variable as argument, but it is most of the time able to work without. Since the function is inside the block that contains the previous variable ped. Yet do it always as arguments just to be sure. But what is absolutely recommended: to validate elements after timer execution. I see a lot of people don't doing it, because they think it is not required. As scripter you want 0 warnings/errors in your code, because they are another written line in your server logs. Which you want to keep low to de-increase the load and operation time of your machine.
  11. That is not the question you are asking and you are ignoring my advice. So bye,
  12. Try and feedback. That's how it works arround here. If you have nothing more to show related to fps, I can't give you feedback.
  13. Download a fps resource(community) and get inspiration of it.
  14. NO, this section is not for requesting.
  15. Delete the resource? Because I don't think runcode started itself. It is the work from an admin/moderator/supermoderator/etc..
  16. I have never rammed a train with a train in gta san in my life. Simply because there is only 1 train at 1 track at the same time. You will probably need this. https://wiki.multitheftauto.com/wiki/AddEventHandler > "onClientPreRender" https://wiki.multitheftauto.com/wiki/SetTrainDerailed https://wiki.multitheftauto.com/wiki/ProcessLineOfSight https://wiki.multitheftauto.com/wiki/GetElementMatrix https://wiki.multitheftauto.com/wiki/IsPedInVehicle
  17. Copy past the code of the backup .map file here. Maybe I can fix the corrupted file here.
  18. Since GTA san exist... and it is script able.
  19. I tried that ones, but I didn't notice any differences in usage. But when you use variables that contain a lot of data, it might be more efficient to use a lot of arguments. Because the server can split them in to packets, yet I do not know if a triggerServerEvent event can define a table in packets. If they are only: true/false/326247547/"Hello!"/{"item1","item2"}, I don't think it would be a problem. With a lot of data I mean:(large data) You can view those changes when you type: /shownetstat
  20. Out put a table? outputChatBox(table.concat(thisTable,", "))
  21. There are is an example on the wiki how to use textures.
  22. IIYAMA

    Math

    Round your values: down, up or both. math.random require an integer value and not a float value. int: 1 float: 1.11111111111111111111111111111 Down local upperbound = math.floor(upperbound) local lowerbound = math.floor(lowerbound) Up local upperbound = math.ceil(upperbound) local lowerbound = math.ceil(lowerbound) Both local upperbound = math.floor(upperbound+0.5) local lowerbound = math.floor(lowerbound+0.5)
  23. Because the developer of a script is a designer. Not always a graphical designer, but also a designer of a system made by code. When you rip code out of a script, the design changes. Most of the time the design becomes uglier because 90% don't understand how it works. Ugly in a way that it doesn't work well any more, ugly in the interaction with the user or ugly at the level of graphical design(gui's, dx). But that is not the problem, the problem lies with the publishing. Two ways of publishing, with negative attention for the developer: - Badly edited the resource and published it on a server. And it will shows all visitors how badly you(developer) designed it. And no they will not look at the unknown person that edited it, but YOU as developer. - Ripping out the code and places it in badly designed resource. Mostly without author copy right. They will be reminded by the code you published before and make that LINK between your resource and that badly designed one.
  24. When you change your image to 1 color and export(web) it as png-8. You won't have that problem any more. png-24 is kinda tricky to draw with a lot alpha blending. But check your photoshop export settings correctly! The png-8 settings from photoshop are not correct by default! Also you might want to try dxCreateTexture first. - Speeds up the render speed. - Can be compressed with dxt1,dxt3,dxt5. For using less GPU(video card) memory. I recommend dxt5. - Two ways to render the edges: wrap and clamp Difference between png-8 (left) and png-24 (right):
  25. You can detect it with: local camPosX, camPosY, [color=#FF0000]camPosZ[/color] = getPedBonePosition ( lp, 8 ) Line: 46 t/m 69 is for the leaning left and right, you can rip it out < reason why I compile my scripts....
×
×
  • Create New...