Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. it's will sets a random color (same random color) for all vehicles whenever any map started. Aren't that what you looking for?
  2. function mapStart(startedResource) if getResourceInfo(startedResource, "type") == "map" then local r1, g1, b1, r2, g2, b2 = math.random(255), math.random(255), math.random(255), math.random(255), math.random(255), math.random(255) for i, vehicle in ipairs(getElementsByType("vehicle")) do setVehicleColor(vehicle, r1, g1, b1, r2, g2, b2) end end end addEventHandler("onResourceStart", root, mapStart)
  3. TAPL

    [HELP] Debug

    viewtopic.php?f=91&t=47897
  4. From where you trigger the event "createVehicleFromGUI" ? or you just copy randoms codes? ._.
  5. كودك فيه قريد لست واحد فقط GUIEditor_Grid[1] = guiCreateGridList(10,23,220,250,false,GUIEditor_Window[1]) الثاني غير موجود
  6. Since the Rz in Closed Barrier and in Opened barrier is the same, why do the hell i need it?
  7. TAPL

    GridList

    في أخطاء السطر ذا guiGridListAddColumn(GUIEditor_Grid[1],"skin",0.2) غير مكانه و حطه فوق السطر ذا local rows = {} و غير السطر ذا if( source == v )then إلى if( guiGridListGetSelectedItem(source) == v )then و السطر ذا local itemName = guiGridListGetItemText(GUIEditor_Grid[1], source, 1) إلى local itemName = guiGridListGetItemText(GUIEditor_Grid[1], guiGridListGetSelectedItem(source), 1)
  8. TAPL

    A Question :)

    Right now you can do this solution maybe. local object = createObject(8838, 2490, -1670, 13.9) local object1 = createObject(8838, 2490, -1670, 17.9) addEventHandler("onClientResourceStart", resourceRoot, function() attachElements(object1, object, 0, 5, 0) setTimer(detachElements, 200, 1, object1, object) end)
  9. TAPL

    A Question :)

    LoL, this really strange. This is bug, should be reported at: http://bugs.multitheftauto.com
  10. TAPL

    GridList

    ناقص فاصله local skins = {["Skin 1"] = 1 ["Skin 2"] = 2} التصحيح local skins = {["Skin 1"] = 1, ["Skin 2"] = 2}
  11. TAPL

    Help

    getRootElemnt() To: getRootElement() And you forgot the "end".
  12. TAPL

    A Question :)

    Post your code, i want try.
  13. Where is the server side?
  14. The problem is ??
  15. bargate = createObject (968,-1572.1999511719,658.90002441406,7.0999999046326,0,90,90) damarker = createMarker (-1572.1999511719,658.90002441406,7.0999999046326, "cylinder", 9.5, 255, 0, 0, 0 ) isMoving = false function gatefunc( hitPlayer ) if ( getElementType ( hitPlayer ) == "player" and isPedInVehicle( hitPlayer ) ) then local veh = getElementModel ( getPedOccupiedVehicle ( hitPlayer ) ) if ( veh == 597 ) and not isMoving then isMoving = true moveObject( bargate, 1500, -1572.1999511719,658.90002441406,7.0999999046326, 0, -90) end end end addEventHandler( "onMarkerHit", damarker, gatefunc ) function gatefuncclose( hitPlayer ) if ( getElementType( hitPlayer ) == "player" and isPedInVehicle( hitPlayer ) ) then local veh = getElementModel( getPedOccupiedVehicle( hitPlayer ) ) if ( veh == 597 ) and isMoving then isMoving = false moveObject( bargate, 1500, -1572.1999511719,658.90002441406,7.0999999046326, 0, 90) end end end addEventHandler( "onMarkerLeave", damarker, gatefuncclose )
  16. TAPL

    A Question :)

    Maybe you need this: setElementCollidableWith
  17. You want increase the width of the column? call(getResourceFromName("scoreboard"), "scoreboardAddColumn", "Occupation", root, 100)
  18. كوبي بست مدري من وين جايبه شوف أسم الأوبجيكت يا عزيزي عندك end وشوف كم
  19. getPlayerAccount getAccountName aclGetGroup isObjectInACLGroup moveObject
  20. TAPL

    GridList

    https://wiki.multitheftauto.com/wiki/OnClientGUIClick https://wiki.multitheftauto.com/wiki/GuiGridListGetSelectedItem https://wiki.multitheftauto.com/wiki/GuiGridListGetItemText
  21. TAPL

    GridList

    حط كودك الي ما ضبط معك و ايش كنت تبي تسوي
  22. Post your meta.
  23. Make sure that you have define the image in the meta.xml and the path is correct.
  24. You're welcome.
  25. Oh i see Well, let make it with infinite timer then, not best solution anyway but it can do the job. addEventHandler("onClientResourceStart", resourceRoot, function() setTimer(function() for _, Ads in ipairs(getElementsByType('gui-button')) do guiSetProperty(Ads, 'NormalTextColour', 'FFFFFF00') guiSetProperty(Ads, 'HoverTextColour', 'FFFF0000') guiSetProperty(Ads, 'PushedTextColour', 'FF220000') guiSetFont(Ads, "default-bold-small") end end, 250, 0) end)
×
×
  • Create New...