Jump to content

Callum

MTA Contributors
  • Posts

    865
  • Joined

  • Last visited

Everything posted by Callum

  1. https://forum.multitheftauto.com/viewtop ... 91&t=26541
  2. Then the answer (in my opinion) is; No.
  3. I guess that means as it's not focused on the player, and the HUD is a property of the player element, it won't show.
  4. Callum

    commands

    Then that's the problem in your ACL
  5. Callum

    commands

    Is your resource called exactly "commands!", or is the ! a typo?
  6. Callum

    commands

    The server must be restarted for ACL to be updated.
  7. [url=http://thelongestlistofthelongeststuffatthelongestdomainnameatlonglast.com/]http://thelongestlistofthelongeststuffa ... glast.com/[/url]
  8. Callum

    TDMA timer

    Something like; function timer() setTimer(vote,300000,1) end addEventHandler("onResourceStart",getResourceRootElement(),timer) -- onResourceStart isn't a very good option, replace it... function vote() exports.votemanager:startPoll() -- Between () enter the arguments (see [url=https://wiki.multitheftauto.com/wiki/Resource:Votemanager]https://wiki.multitheftauto.com/wiki/Resource:Votemanager[/url]) end
  9. Callum

    Two questions

    1. I have that problem, but when I resume the game from an Alt+Tab, it's easily fixable by pressing the "Alt" button on your keyboard. 2. Entirely up to you.
  10. (As far as I know:) there is no event for as a player gets in/out water, so the only option would be a timer to check every player, and see if they're in water or not. Such as below; function makeTimer() setTimer(checkPlayers,5000,0) end addEventHandler("onResourceStart",getResourceRootElement(),makeTimer) function checkPlayers() for k, v in ipairs(getElementsByType("player")) do if (isElementInWater(v)) then killPed(v) end end end
  11. Look into GTA SA .TXD, .DFF and .COL files. And use these functions; https://wiki.multitheftauto.com/wiki/Client_Scrip ... _functions
  12. By scripting them, of course. You could try https://community.multitheftauto.com/index.php?p= ... ils&id=614 or make your own.
  13. Try looking on the MTA Community site.
  14. Don't know the cause, but you can use math.floor().
  15. Sorry, forgot to add to previous post; In XML maybe somin like; local file = xmlLoadFile("elements.map") for k, v in ipairs (xmlNodeGetChildren(file)) do xmlNodeSetAttribute(v,"x","") xmlNodeSetAttribute(v,"x","") xmlNodeSetAttribute(v,"x","") xmlSaveFIle(file) xmlUnloadFile(file) end
  16. Yea, setElementData should work, maybe somin like; for k, v in ipairs (getElementsByType("elementNode")) do setElementData(v,"x",nil) setElementData(v,"y",nil) setElementData(v,"z",nil) end That is, if the element data is "x", "y", and "z", and you're using a .map file (and of course you want to do it for every one of that element)l.
  17. I tried; "login 12345678910111213141516171819202122232425262728293031323334353637383940411111111111111111111111111111111111111111111111111111111111111111111111111134444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444 test"; and that did nothing, so I guess there is.
  18. The link just leads to a parked domain.
  19. Use https://wiki.multitheftauto.com/wiki/PlaySound or https://wiki.multitheftauto.com/wiki/PlaySound3D
  20. Ok, I've released 1.2.0 which fixes the resolution problem.
  21. Sorry, Gamesnert, I don't understand what you mean, but thanks for the other suggestions, I'll work on them for a future release.
  22. ~BigMac~, just read https://forum.multitheftauto.com/viewtop ... 91&t=26931 and click the blue text which says "Click here".
  23. You cannot set a timer outside of a function. try; function healcar(vehicle) for k, v in ipairs ( getElementsByType("player") ) do if ( isPedInVehicle(v) ) then local vehicle = getPedOccupiedVehicle(v) outputChatBox('car fixed.', v) fixVehicle ( vehicle ) end end end function startTimer() setTimer( healcar, 500, 0 ) -- timer changes all vehicles fix to random every 0.5 sec. end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), startTimer ) Note: looping through every player every 0.5 seconds can cause strain on the server.
  24. Place your server's image in the /images/ directory named "agg_bg.png", then start the resource.
×
×
  • Create New...