Jump to content

myonlake

Members
  • Posts

    2,312
  • Joined

  • Days Won

    41

Everything posted by myonlake

  1. Why does it have to be so difficult and hardcored script? local winner = 10 addCommandHandler("lottery", function(player, cmd) local random = tonumber(math.random(1,12)) if random == winner then outputChatBox("You won, congratulations.", player, 0, 255, 0, false) else outputChatBox("Better luck next time.", player, 255, 0, 0, false) end end ) Done.
  2. No... use the below function, it's meant for it. setElementRotation and setPedRotation has a huge difference. setPedRotation
  3. Usually CRC Mismatch error pops out when values are not identical between the server and client after download. Have you tried re-installing your MTA? If not, try it. Remember to copy your resources folder and then put it back after re-install. Do not copy the whole server folder.
  4. Do not mix server-side and client-side, they're both really different things and they do different things.
  5. There are some, for example the following. http://flobu.fl.funpic.de/MTA/citizens.rar
  6. As long as I am concerned, GTA peds point at north as they spawn.
  7. getTime setTimer When resource starts, check the time and make a timer like, if the clock is 35 minutes past 1pm, it will count 25 minutes until it makes something, after it executes something, it starts an another timer with a 60 minute timer.
  8. Never turn off your firewall unless it's the last option. That firewall is there to do a job and by removing it, you're also making your computer less secure even if you had the latest version of NASA security system. Just open those ports and there you go. Never use Hamachi with MTA, just put a password or disable listing and that's it.
  9. myonlake

    About lines

    I don't use it at all. I only use it when it's needed, which means for example math. We all know when we need brackets in math, no?
  10. myonlake

    About lines

    Exactly, save two bytes is saving! Recycle!
  11. Oh I thought it was your script earlier there, nevermind about that.
  12. First I'd like to tell you to learn lua first. viewtopic.php?f=148&t=40809 https://wiki.multitheftauto.com/
  13. getElementData is not an element/marker. function on_btn_join_clicked(button, state) if (button ~= "left") or (state ~= "up") then return end triggerServerEvent("jf", localPlayer) marker2 = createMarker (-1208.7, -1073.8, 127.2, "cylinder", 1.5, 248, 211, 6, 153) setElementData(localPlayer, "jobm", marker2) showCursor(false) guiSetVisible(fwdw, false) end function jstart(hitElement, matchingDimension) if getElementType(hitElement) == "player" and hitElement == localPlayer and matchingDimension then if getElementData(hitElement, "jobm") then outputChatBox("test") end end end addEventHandler("onClientMarkerHit", marker2, jstart)
  14. addCommandHandler("suitcase", function(player, cmd) local x, y, z = getElementPosition(player) local case = createObject(1210, x, y, z, 0, 0, 0) attachElements(case, player, 0.2, 0, 0, 0, 0, 0) end )
  15. Start Apache and MySQL. Furthermore, I'd give up since you have no knowledge of anything regarding xampp and so on. Read the guides first.
  16. myonlake

    Database

    Why would you like to find out someone's password, that's retarded to even think about doing such thing. MySQL is faster than SQLite and I see PhpMyAdmin easier to use than that browser. SQLite can be used for websites and servers too, Montiz.
  17. function hitpick(player, matchingDimension) if matchingDimension then outputChatBox("You hit a pickup.", player, 0, 255, 0, false) end end addEventHandler("onClientGUIClick", root, function() if source == GUIEditor_Button[1] then local x, y, z = getElementPosition(localPlayer) local housepick = createPickup(x, y, z, 2, 1273, 1) addEventHandler("onClientPickupHit", housepick, hitpick) end end, false )
  18. myonlake

    My Lan SV

    Check your acl.xml in the deathmatch folder. user.Console should be in the admin section over there.
  19. myonlake

    Set up vG script

    Do not bother using MTA server if you have no knowledge of anything regarding servers and scripting.
  20. That would work out as well, but the correct way of doing it is just to edit the .col file in my opinion.
  21. He doesn't mean alpha I suppose. He means collisions. You are not able to change the collisions with anything else than your collision shape editor. I am not sure where to get one, look up one from Google. (collision shape = .col file, which includes the collision shapes)
  22. Seriously... http://localhost/ Configure your username and password there and then delete everything from htdocs folder after you've done it all. Or maybe you should just learn lua and English first.
  23. oh my god setTimer into onClientRender event? also dxDrawText return bool NOT element. I suggest you to start learning lua first << lol I am not helping those who cannot have no effort to take a look into what is in the script, even.
  24. http://www.apachefriends.org/en/xampp.html https://wiki.multitheftauto.com/wiki/Modules/MTA-MySQL 'mtaserver.conf' <module src="mta_mysql.dll"/> <module src="sha.dll"/> 'sql' resource local server = get( "server" ) or "hostname" local user = get( "user" ) or "username" local password = get( "password" ) or "password" local db = get( "database" ) or "database"
×
×
  • Create New...