Jump to content

undefined

Members
  • Posts

    500
  • Joined

  • Last visited

Everything posted by undefined

  1. No, it is occuring when i fired. So, createExplosion... local mx, my, mz = getPedWeaponMuzzlePosition(source) createExplosion(mx,my,mz-10, 12, false, 0.2, false)
  2. undefined

    Fire Shake

    I add createExplosion for create shake when the player fire weapon. But it is make stain. How can i prevent this stain or Is there another way to shake?
  3. How can I get model has custom model for object,weapon,...? Thx
  4. What if the table has a number and a string? myTable[1] is a string and myTable[2] is an integer. I doesn't try it. If it isn't work, use tostring(integerValue)
  5. Hi. Im work on vehicle's hangling. Im make this code but it is not work. What is the problem? When I used it; It say true. It's not give error or warning.
  6. Thank you! It's solved.
  7. Im use downloadFile for download resource. It is download first important scripts after other scripts. So, is downloadFile already check it?
  8. Use table.sort. Example: table.sort(table, function(a,b) return a > b end)
  9. Hi guys. Im make download system. But i have problem. Example; filename skin/dead.col for example: if crete new text document and change name dead.col and set file path skin/dead.col the system is exists sense it. How can i prevent it? Sry for my english .s
  10. Solved! downloadFile is work only if downloadFile function and file in the same resource.
  11. It's give same error.
  12. Im make a download system. So first important script, second ... But it's give error. downloadFile(":object/Skins/dead.col") Script is running. What is the problem? Thx
  13. I'm use these code for create text while resource downloading. But sometime text not remove. What is the problem? Client local gMe = getLocalPlayer() downloadTimer = setTimer(function() if not isTransferBoxActive() then if not getElementData(gMe, "loggedin") then triggerServerEvent("onClientDownloadFinish", gMe) outputChatBox("test") -- It is showing. fadeCamera(true) showChat(false) showPlayerHudComponent("radar",false) end if isTimer(downloadTimer) then killTimer(downloadTimer) end end end, 50, 0) Server local DownloadDisplay, textItem addEventHandler("onResourceStart", root, function() DownloadDisplay = textCreateDisplay() textItem = textCreateTextItem ("Kaynak indiriliyor...\n(Resource is downloading)\n\nTundra Gaming\nv1.0.0", 0.5, 0.4, "high", 255, 255, 255, 255, 2.5, "center", "center", 0) textDisplayAddText(DownloadDisplay, textItem) end) addEventHandler("onPlayerJoin", root, function() textDisplayAddObserver(DownloadDisplay, source) end) addEvent("onClientDownloadFinish", true) addEventHandler("onClientDownloadFinish", root, function() if textDisplayIsObserver(DownloadDisplay, source) then textDisplayRemoveObserver(DownloadDisplay, source) end end)
  14. I reinstalled MTA. Solved!
  15. Why it is not work? weapon_s.lua addEventHandler("onWeaponFire", root, function() outputChatBox("test") end) meta ="weapon_s.lua" type="server" />server="1.4" /> Debug is not give error or warning!
  16. While the weapon bullets 0, weapons disappear. How can I prevent it?
  17. For example: Before: After
×
×
  • Create New...