Jump to content

IIYAMA

Moderators
  • Posts

    6,063
  • Joined

  • Last visited

  • Days Won

    208

Everything posted by IIYAMA

  1. yes use tables + https://wiki.multitheftauto.com/wiki/OnClientWeaponFire Every shot the guns fires, the ammo will drop in the table data. If you don't understand tables then you can forget it.
  2. <spawnpoint id="ranch" posX="-711" posY="957" posZ="12.4" rotation="90"></spawnpoint> <spawnpoint id="pirate" posX="2005" posY="1543" posZ="13.5" rotX="270"></spawnpoint> <spawnpoint id="grove" posX="2485" posY="-1667" posZ="13.3" rotX="0"></spawnpoint> <spawnpoint id="hill" posX="-2405" posY="-598" posZ="132.6" rotX="128"></spawnpoint> In the .map file.
  3. this probably will work: addEventHandler("onClientResourceStart", resourceRoot, bindKey ("m", "down", function() showCursor( not isCursorShowing() ) end) end) Keys can't be set when the resource hasn't start yet, as far as I know.
  4. wut ? O_o what kind of magic is it ?! "failing"
  5. local vehicleCheck = {[523]=true, [598]=true, [596]=true, [597]=true, [599]=true} -- a both the function. -- ect if vehicleCheck[getElementModel(clickedElement)] then people, WTF!!!!????
  6. IIYAMA

    SlothBot

    true, unless you get it by it's name: https://wiki.multitheftauto.com/wiki/GetTeamFromName
  7. what if you you give it first ammo? https://wiki.multitheftauto.com/wiki/SetWeaponAmmo
  8. So reupload the resource with the same name and it will automatic be the new version?
  9. I am not sure if I am the right section. (never post anything here) But how can I upload new versions of my resources at: https://community.multitheftauto.com/ind ... ls&id=8017 ? Thank you,
  10. IIYAMA

    SlothBot

    Solves most of latency trouble. isElement(element)
  11. @ myonlake thank you very much
  12. You should try to set the vehicle respawnable. (script)
  13. Line 9 till 12 epic fail. setTimer only returns the timer. You should create a second function, a function you can call with your timers and do what you have to do. Because this doesn't make any sense.
  14. IIYAMA

    dx movement

    by changing the text position with every frame you render.
  15. sorry, but this is just crap. local's can't leave the 'if' block. and much more mistakes.
  16. IIYAMA

    Ping 0

    oh you have to do a lot more. - create a playerTable - use a loop - check their getNetworkStats - kick kickPlayer function etc.
  17. IIYAMA

    Ping 0

    something like that.
  18. IIYAMA

    Ping 0

    https://wiki.multitheftauto.com/wiki/GetNetworkStats
  19. Nothing is impossible, my server is already using a system that can do that or even more. But I won't start talking about that because you simply can't use my property... What you can try is using the event's to save the last vehicle etc. https://wiki.multitheftauto.com/wiki/OnVehicleEnter https://wiki.multitheftauto.com/wiki/OnVehicleExit https://wiki.multitheftauto.com/wiki/OnVehicleExplode If you really want to create something like that, You have to create your own system to manage the data, you can choose for elementdata or using tables for quick data usage. If you can work with tables, use tables cause they are 1000+ times faster with data then elementdata. Good luck cause you still have a long way to go for perfection.
  20. what doesn't work about it? Explosions aren't damage cause of the vehicle. Only when you ram a player with it, it will be the vehicle.
  21. IIYAMA

    ped health

    You don't need to show your code for that, the answer is yes. You can use it on all elements that can have health. (ped's, players and vehicles)
×
×
  • Create New...