Jump to content

PaiN^

Members
  • Posts

    2,258
  • Joined

  • Last visited

Everything posted by PaiN^

  1. إذا ما تعرف انجليزي, بتاخذ اسبوع على كل وظبفة, الإنجليزي مرة مهم للبرمجة تنفع في جانب الكلنت فقط getLocalPlayer يعني وظيفة
  2. getLocalPlayer > client side function !! والنسخ واللصق ما راح ينفعوك
  3. PaiN^

    Hello !!!

    If you want to make a multigamemode server, You'll need more that element data ..
  4. addCommandHandler - tirggerClientEvent - isElement - stopSound - playSound -
  5. يمديك تستخدمه من الإصدار 1.3.1 فما فوق , لا مو كذا @ w1w#ALBANDER : أنا أعتقد إن الوظيفة زي ما قال تابل, ما تشتغل إلا على السيارات و البيد الي تطلعهم من الكلينت فقط, لأن مشكلة لو لاعب دخل سيارة تم عملها وهميا يعني كلنت, ويحركها ثم يجي لاعب ثاني وتكون نفس السيارة واقفة في نفس المكان, حتصير لخبطة
  6. يحتاج لأن إعطاء الفلوس لازم يكون سيرفر, عشان يكون زي ما تقول مو وهمي @ ABO-SR777777A : إذا المود صعب عليك, إبدأ إتعلم بشي أسهل منه, وحبة حبة تجي المحبة
  7. getWeaponNameFromID و getPedWeapon إستخدم * getPedTotalAmmo مو دايما تجيب النتيجة الصحيحة, عشان كذا لازم تستخدم معاها getPedWeapon ترى
  8. @ TaRK.[$]<~ : - ! إللي في الفنكشن مالها معنى player - هذا التايمر راح يكرر كل 9 ثواني مو دقايق
  9. Then modify the killmessages, It won't be so hard
  10. بدري وصل 7000 دحين ما شاء الله عليه الله يحفظه
  11. Great news ! I'm going to update right now !!
  12. Well you'll need to create a marker/col shape in the place you want the player to get beer from, and then use Bone attachments resource to attach the beer ( which is an object in the game ) to the player, And bind a key to set his animation to drink .
  13. PaiN^

    Question

    isVehicleBlown
  14. You'll need dimensions functions, And maybe element data .
  15. ذي وش فايدها و كيف استخدمها ؟؟ هذي تستخدمها لإستخراج وظيفة من مود لمود آخر, يعني مثلا عندك هذي الوظيفة في مود : function output( message, element, r, g, b, hex ) return outputChatBox( message, element, r, g, b, hex ) end وتبي تستخدمها من مود آخر, تقوم أول شي تستخرجها من ملف الميتا حق المود إللي هي موجودة فيه function="output" type="server" /> بعد ما خليتها قابلة للإستخراج, تروح للمود الآخر إللي تبغى تستخدم الوظيفة فيه, وتحط كذا : exports.resourceName:output( ... ) أو exports["resourceName"]:output( ... ) زي كذا call او تستخدم الوظيفة : call( getResourceFromName( "resourceName" ), "output", ... ) resourceName = إسم المود اللي الوظيفة موجودة فيه
  16. أعتقد الحل بإستخدام : interpolateBetween
  17. @ Tate omar : نسيت أقواس الوظيفة for k, v in ipairs( { "Hello", "Hi", "Bye" } ) do outputChatBox( "Key: " .. k .. ", Value: " .. v ) end
  18. "onClientGUIClick" setElementPosition setElementDimnsion setElementData getElementData وكم وظيفة كمان, وعشان يشتغل صح لازم تعدل على كل المودات اللي عندك, أو تكون كلها من صنعك عشان تعرف تخلي كل قيم مود موداته فيه بس
  19. setElementPosition مكتوب في الويكي عن Do not use this function to spawn a ped/player
  20. PaiN^

    Gui editor

    I fixed it for you, But i don't see what's the point of it !? function playerList( ) myWindow = guiCreateWindow( 220, 82, 376, 402, "Team panel by Steven", true ) button1 = guiCreateButton( 195, 324, 171, 58, "Kick from team", true ) button2 = guiCreateButton( 195, 123, 167, 57, "Invite to team", true ) playersList = guiCreateGridList( 9, 23, 181, 369, true ) guiGridListAddColumn( playersList, "Players", 0.9 ) for id, playeritem in ipairs( getElementsByType( "player" ) ) do local row = guiGridListAddRow( playersList ) guiGridListSetItemText( playersList, row, column, getPlayerName( playeritem ), false, false ) end addEventHandler( "onClientGUIClick", playersList, click ) end addEventHandler( "onClientResourceStart", root, PlayerList ) function click( button, state ) if state == "down" then local row, col = guiGridListGetSelectedItem( playerList ) if row and col and row ~= -1 and col ~= -1 local playerName = guiGridListGetItemText( playerList, row, col ) end end end
  21. Learn how to wright scripts first ! Lua tutorials, manuals
  22. What do you mean by "bind command" ?? To bind a key to a command handler / function use bindKey, example : --// client-side script ! addEventHandler( "onClientResourceStart", resourceRoot, function( ) bindKey( "F1", "down", "report" ) end ) This should bind the "F1" button to the report command from the admin resource ( which opens the report GUI ) .
  23. "onClientRender" or setTimer setVehicleColor math.random
  24. That will not work, Use onClientResourceStart as xXMADEXx told you .
  25. PaiN^

    ماركر

    أو العكس false إلى true يعني التايمر يغير قيمة الداتا من يكمل الوظيفة عادي true ما يكمل الوظيفة , أما لو كانت false وبعدين مع حدث دخول الماركر يتحقق من الداتا لوكانت
×
×
  • Create New...