Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 28/07/18 in all areas

  1. عاش من شافك تساعد حسبتك اختفيت +_+ ابحث بقسم الشروحات اتوقع اني شرحتها بالتفصيل
    1 point
  2. من زمان م شفناك تعلق منورر الحتةةء ي سطى
    1 point
  3. addEvent("carBuy", true) addEventHandler("carBuy", getRootElement(), function (id2, cost2, name2,x, y, z, sRz) if ( getPlayerMoney(source) >= tonumber(cost2) ) then if ( getPedOccupiedVehicle(source) ) then outputChatBox ("#ff0000Leave your vehicle to spawn another vehicle", source, 255, 255, 255, true) return end outputChatBox ("#006400You Bought A : #FFFFFF" .. name2, source, 255, 255, 255, true) outputChatBox ("#006400ID: #FFFFFF" .. id2, source, 255, 255, 255, true) outputChatBox ("#006400Costs: #FFFFFF" .. cost2, source, 255, 0, 0, true) takePlayerMoney (source, tonumber (cost2)) local x,y,z = getElementPosition (source) local vehicle = createVehicle (id2, x, y, z, 0, 0, sRz ) warpPedIntoVehicle(source, vehicle) else outputChatBox ("#006400You Don't Have Enough #FFFFFFMoney", source, 255, 255, 255, true) end end)
    1 point
  4. markerDoor3 = createMarker(835.79998779297,-2067.8999023438,11.89999961853,'cylinder',8,0,0,0,0) addEventHandler('onMarkerHit',markerDoor3, function ( hitElement ) if ( getElementType(hitElement) == 'player' ) then triggerClientEvent(hitElement,"OpenW",hitElement) end end ) --------CLient addEvent("OpenW", true) addEventHandler("OpenW",root, function() local value = not guiGetVisible(window2) guiSetVisible(window2, value) showCursor(value) end )
    1 point
  5. راح ندرس الفكره , وشكرا على اقتراحك
    1 point
  6. Update - replaced old custom scroll pane, what I didn't understood to new, more easily for using - Fixed bugs with removing elements in combo boxes
    1 point
  7. Glad to hear you fixed the bug
    1 point
  8. uhhhh Here better example. script: dbExec(db, "UPDATE Vehicles SET Number = ? WHERE ID = ?", toJSON(newplate), vehid) database:
    1 point
  9. script code: sometable = {1, 2, 3} toJSON(sometable) -- OR toJSON({1, 2, 3}) in database (with toJSON) [[1, 2, 3]] it gives additional box brackets
    1 point
  10. لانه جالس يقلي انه اخوك ._. وابي اتأكد
    1 point
  11. ياخي ولله كله نصيب بتاع ربنا اجتهد عمر ما ربنا هيخيب ذنك
    1 point
  12. @Jayceon Drawing a texture from a path is slow. Use a texture created with dxCreateTexture instead. And, drawing a whole map which is 3072x3072 is also slow.
    1 point
  13. You were making some functions not work as they should, and you're not using client-side when you need to be using. This may be working. SERVER SIDE --[[ SERVER SIDE --]] local greenzone = createColRectangle(-2434.68799,-688.11896,150,200) local greenzoneMap = createRadarArea(-2434.68799,-688.11896,150,200,0,255,0,100) function greenzoneEnter (element) if ( getElementType(element) == "player" ) then if not ( getElementData(element,"invincible") ) then setElementData(element,"invincible",true) end outputChatBox("You've entered the greenzone!",element,50,252,3) toggleControl(element,"fire",false) toggleControl(element,"next_weapon",false) toggleControl(element,"previous_weapon",false) toggleControl(element,"aim_weapon",false) toggleControl(element,"vehicle_fire",false) toggleControl(element,"vehicle_secondary_fire",false) setPedWeaponSlot(element,0) end end addEventHandler("onColShapeHit",greenzone,greenzoneEnter) function greenzoneLeave (element) if ( getElementType(element) == "player" ) then if ( getElementData(element,"invincible") ) then setElementData(element,"invincible",false) end outputChatBox("You've left the greenzone!",element,50,252,3) toggleControl(element,"fire",true) toggleControl(element,"next_weapon",true) toggleControl(element,"previous_weapon",true) toggleControl(element,"aim_weapon",true) toggleControl(element,"vehicle_fire",true) toggleControl(element,"vehicle_secondary_fire",true) end end addEventHandler("onColShapeLeave",greenzone,greenzoneEnter) CLIENT SIDE --[[ CLIENT SIDE --]] addEventHandler("onClientPlayerDamage",getLocalPlayer(),function() if ( getElementData(localPlayer,"invincible") ) then cancelEvent() end end) addEventHandler("onClientPlayerStealthKill",getLocalPlayer(),function(target) if ( getElementData(target,"invincible") ) then cancelEvent() end end)
    1 point
  14. هذا رمز انا استخدمته عشان يفصل السترنق ع حسب الرقم وخليته غريب عشان مايصير فيه تعارض يوم يجي يفصل السترنق تقدر تحط اي حرف او ارقم او رمز بداله عشان يفصل لكن انا فضلت ذا
    1 point
  15. Thanks! I fixed gridlist - i replaced: local gridlist = with gridlist = and it help me. So it was my fault
    1 point
  16. ساعات التواجد بنفس قاعده البيوت !!
    1 point
  17. Update - added all information of functions with examples on wiki. - Fixed bugs with Tab Panels - Fixed bugs with Number Scrollers - Fixed event of Combo Boxes
    1 point
  18. I solved this problem with a 8x8 circle image. Added image to the every node position in RT and looks better. What I mean? dxSetRenderTarget(gpsRouteImage) dxSetBlendMode("modulate_add") for i = 2, #gpsLines do if gpsLines[i - 1] then local x0 = gpsLines[i][1] - routeStartPosX + 8 local y0 = gpsLines[i][2] - routeStartPosY + 8 local x1 = gpsLines[i - 1][1] - routeStartPosX + 8 local y1 = gpsLines[i - 1][2] - routeStartPosY + 8 dxDrawImage(x0 - 4, y0 - 4, 8, 8, "dot.png") dxDrawLine(x0, y0, x1, y1, tocolor(255, 255, 255), 9) end end dxSetBlendMode("blend") dxSetRenderTarget()
    1 point
  19. @TheOtherSide انت طولتها مره وعقدتها سويتها بأخف وابسط الطرق function StrMultiLine ( theStr , theNum ) local FunCheck = ( assert ( type ( theStr ) == "string" , "error StrMultiLine arg 1 got " .. type ( theStr ) ) and assert ( type ( theNum ) == "number" , "error StrMultiLine arg 2 got " .. type ( theStr ) ) and theNum > #theStr and error ( "error StrMultiLine arg 2 num larger than string" ) ) return split ( theStr : gsub ( ( "." ) : rep ( theNum ) , "%1ㅀ" ) : sub ( 1 , -1 ) , "ㅀ" ) end مثال print ( table.concat ( StrMultiLine ( "HiHeIsOr" , 2 ) ) )
    1 point
  20. Not gonna contact you on FB, that's so dead. Add me on Discord Syncer#1290 or hit me a PM here. (not recommended, it'll take time)
    1 point
  21. جميل , موفق وإستمر .. @ععيونككء اخخر امممأليء ^
    1 point
  22. جاد، ممكن نتعرف 07500297337
    1 point
  23. فنانة ، زوجني ياها وبدعمك باللعبة ضض2 لو نوع اللعبة رعب قولي وبقولك قصة روعة تغير من مسار القصة 180 % درجة وتنجح ان شاء الله
    1 point
  24. شكراً, ولكن انت ماتعرف اذا انا خبير ولا لا عشان تقول ذا افضل من ذا ولا العكس
    1 point
  25. انا موافق على ذول لانهم الصراحة يساعدو الناس كثير و منورين المنتدى @*RayaN-Alharbi. @MrKAREEM @#DesTroeyR @MR.TOUNSI @,#Savage @#,+( _xiRoc[K]; > و في مين افضل منهم و اكثر خبرة مثل @Abdul KariM @N3xT @#_iMr,[E]coo @Master_MTA
    1 point
  26. تبي تتعلم صنع مودات , درجة درجة , وخذ امثله من الويكي لا يوجد شيء صعب ي صديقي البرمجة فقط لى راسه مفتوح فيها ومعندهـ شيء يسويه
    1 point
  27. Update: - Now for all widgets do not want to use functions Window:getFrame and Window:addElement(s). Just put as parent window widget (look at the example, or documentation) - In function GuiStaticImage.create now you can use as parent argument window widget. - Fixed bugs with relative objects and with side bar of window. - Added more information in documentation.
    1 point
  28. Olá, por favor use o sub-fórum Portuguese / Português para criar tópicos em português. setPlayerNametagColor ( player thePlayer, int r, int g, int b ) Exemplo setPlayerNametagColor ( getPlayerFromName("meu_nick"), 0, 200, 0 )
    1 point
  29. Imagino que essa função seja do próprio gamemode. Pode ser que tenha sido removida por engano ou esteja por algum equivoco com nome diferente.
    1 point
  30. O Hud deve estar configurado pra isso. E em relação ao resto, tenha em mente que quando qualquer elemento é criado em um interior, deve ser definido o id do interior correspondente com a função setElementInterior. Pode ser também que você esteja visualizando, digamos a marca da loja, mas o painel não está abrindo por algum motivo, nesse caso, você precisa mostrar o código.
    1 point
  31. على اساس انك تعرف له هه
    1 point
  32. Não conheço como que isso funciona no gamemode então não sei responder. Acho que na tabela lootItems estão os valores da arma e munição.
    1 point
  33. ألسلام عليكم ورحمة الله وبركاتة كيف حالكم انشاء الله بخير اليوم رجعت لكم بمود جديد وهو مود شراء القوارب اتررككم مع الصور Download ccz وداعا :] الاهدائات : @MR.S3D @DABL @#Himoo @iMr.WiFi..! @!#NssoR_) @Abu-Solo @N3xT @والباقي في القلب
    1 point
  34. 'onVehicleDamage' setElementHealth
    0 points
  35. 0 points
  36. Well, we can't help you without your codes.
    0 points
×
×
  • Create New...