Jump to content

Sora

Members
  • Posts

    698
  • Joined

  • Last visited

Everything posted by Sora

  1. Try triggering a function like this -- server side triggerClientEvent(source,"sth",source) -- client side addEvent("sth",true) addEventHandler("sth",root, function () marker = createMarker(-840.2998046875, -3680.599609375, 44.299999237061) hitPlayer = getLocalPlayer() function shadesMagic(hitPlayer, matchingDimension) -- if marker == hitPlayer or matchingDimension then this makes no sense block_1 = createObject(3095,-808.7998046875,-3623.5,52.200000762939,0,146.99157714844,0) moveObject(block_1,600,-835.7998046875,-3623.5,43.200000762939,0,33.00842285156,0) -- end end addEventHandler("onClientMarkerHit", marker, shadesMagic) end)
  2. thanks , yeah i know and it's not even mta related i just wanted to share sth i made
  3. في نفس مسار الملف الذي تريد تشفيره لاكن بصيغة .luac مافيه ولا ملف مشفر الاسباب : 1 - يوجد خطأ بالسكربت الذي تحاول تشفيره 2 - ترميز السكربت الذي تحاول تشفيره ليس UTF-8 without BOM 3 - لم تقم بتشغيل البرنامج كـمسؤول والمكان الذي يتواجد به السكربت يتطلب خصائص المستخدم المسؤول
  4. في نفس مسار الملف الذي تريد تشفيره لاكن بصيغة .luac
  5. There's a lot of things to do (besides that it's really hard) anyways i wish you a good luck with that
  6. did you try setting the x,y,z coordinates to 1254.7118, -1439.0953, 333.8233 before using setElementPosition ? also you have to know that the client element you added the event to is a server side predefined variable check :https://forum.multitheftauto.com/viewtopic.php?f=91&t=39678 try this addEvent("openCharacterGUI",true) addEventHandler ( "openCharacterGUI", root, function () showCursor ( true ) guiSetVisible ( charWindow[1], true ) triggerServerEvent ( "getChars", localPlayer ) charPed = createPed ( 34, 1254.7118, -1439.0953, 333.8233 ) setElementFrozen ( charPed, true ) --setElementPosition ( charPed, 1254.7118, -1439.0953, 333.8233 ) setElementDimension ( charPed, 0 ) setElementInterior ( charPed, 0 ) setPedAnimation ( charPed, "ped", "IDLE_stance", -1 ) setElementRotation ( charPed, 0, 0, 0 ) setTimer ( function () localCharSkin = tonumber ( getElementModel ( charPed ) ) x,y,z = getElementPosition ( charPed ) setTimer ( function () outputChatBox ( "PedLoc: "..x..", "..y..", "..z ) end, 200, 10 ) if ( charPed ) then outputChatBox ( "char = true, "..tostring(charPed).." "..tostring(localCharSkin).." "..getElementInterior ( charPed).." "..getElementDimension(charPed).." "..getElementAlpha ( charPed ) ) else outputChatBox ( "char = false" ) end end, 100, 1 ) end )
  7. I'm using both notepad ++ and scite but i prefer scite and rarely using notepad ++ i got scite with luaforwindows package it's somehow faster opening files and of course since it came with lua package it had a built-in debugger and some other features look here viewtopic.php?f=91&t=31891&start=30#p451767
  8. Yeah , and here's the problem i may have to re-create the whole project again , nevermind i've done that ...
  9. Sora

    Grey Screen

    http://files.mtasa.com/apps/tools/MTADiag.exe
  10. Sora

    warn system

    Here's the error i found so far in your code in line 5 , you've put thePlayer in place of sourcePlayer & in line 7 ,you've tried to loop a variable not a table
  11. Sora

    Grey Screen

    i think you're using a modified gtasa version , try re-installing the original gtasa game it may solve your problem if this didn't work use mtadiag and post the link you get in your reply
  12. Hi , i have made a vb.net windows application project and tried to change the .net framework into older versions like 4.0 , 3.5 but it wont change anyways i got tired from trying so i've set it back to .net framework 4.5 then tried to compile but now it gives me same error i get when i try to change .net framework version into older version this error wont go and now i cannot compile my project , if you're an vb.net expert i would appreciate it if you can help me .
  13. marker = {} addCommandHandler('Marker', function(player) if not marker[player] then marker[player] = createMarker(...) else outputChatBox("* You've already created a marker",player,255,0,0) end end ) اذا اردت حذف الماركر استخدم destroyElement(marker[player]) marker[player] = nil
  14. Hi guys , i want to share my simple skype flip status program this program is similar to flip status plugin for messenger plus it requires .net framework 4.5 because it were made using vb 2012 Scan resutls Download
  15. لو تلاحظ بالصوره الي حطها لون الاسم بالشات هو نفسه لون التيم بس لون اسمه بالتاب يختلف هذا الي فهمته من الصوره انه يبي يغير لون اسمه بالتاب ذذ
  16. ذا بست ماحب اتدخل بس ليه ال hex color? استخدم setPlayerNametagColor زي ماقال ضاوي وريح حالك هع
  17. الله يسامح هـ الانسان يمكن عنده اختلال بالمخ او حاله نفسيه
  18. sara = AL-PRNS الله يهديك ماتتوب كل شوي تقلد وتسبب مشاكل؟
  19. اذا كنت تقصد يحط كاميرا اللاعب * المكان الي تشوف به بالشاشه * على منطقه معينه في السماء استخدم هذي الوظيفه setCameraMatrix
×
×
  • Create New...