Jump to content

IIYAMA

Moderators
  • Posts

    6,089
  • Joined

  • Last visited

  • Days Won

    216

Everything posted by IIYAMA

  1. - Did you test it with other sounds and formats? - Try it to play it at 'onClientResourceStart' just to be sure. - Try it as local file, because the lua code doesn't wait for it to load from the url. etc. There are a lot of conditions why it might not work. The only thing you can do is by check them all, till you find the solution/problem.
  2. You sure it(song) contains them(meta tags)?
  3. By moving a part of the behaviour(js) to php and your website will be useless for thief's. Html files must be not have encryptions or anything that projects them. If there is anything that does that(which I do not know), there is a big chance that a lot of devices do not work properly any more.
  4. IIYAMA

    MG nest

    I synced custom weapons on vehicles of choice a long time ago and I do not regret making it. Fixed all weapon bugs(damage) by creating overwrites. A good end result can be reached(without further development of the MTA team), so I see no reason why he should not too. The only thing he might have trouble with, is making it actuality turn.
  5. 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.........
  6. 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.
  7. 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.
  8. IIYAMA

    MG nest

    Well afaik, that kind of script isn't yet on the community.
  9. 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.
  10. 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.
  11. IIYAMA

    [HELP] Question

    getElementPosition getDistanceBetweenPoints2D -- getDistanceBetweenPoints3D < flying setElementData setTimer -- or addEventHandler("onClientRender" --( + getTickCount() )
  12. 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."
  13. 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.
  14. 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.
  15. That is not the question you are asking and you are ignoring my advice. So bye,
  16. 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.
  17. Download a fps resource(community) and get inspiration of it.
  18. NO, this section is not for requesting.
  19. Delete the resource? Because I don't think runcode started itself. It is the work from an admin/moderator/supermoderator/etc..
  20. 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
  21. Copy past the code of the backup .map file here. Maybe I can fix the corrupted file here.
  22. Since GTA san exist... and it is script able.
  23. 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
  24. Out put a table? outputChatBox(table.concat(thisTable,", "))
  25. There are is an example on the wiki how to use textures.
×
×
  • Create New...