-
Posts
7,337 -
Joined
-
Days Won
11
Everything posted by TAPL
-
it's will sets a random color (same random color) for all vehicles whenever any map started. Aren't that what you looking for?
-
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)
-
From where you trigger the event "createVehicleFromGUI" ? or you just copy randoms codes? ._.
-
كودك فيه قريد لست واحد فقط GUIEditor_Grid[1] = guiCreateGridList(10,23,220,250,false,GUIEditor_Window[1]) الثاني غير موجود
-
Since the Rz in Closed Barrier and in Opened barrier is the same, why do the hell i need it?
-
في أخطاء السطر ذا 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)
-
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)
-
LoL, this really strange. This is bug, should be reported at: http://bugs.multitheftauto.com
-
ناقص فاصله local skins = {["Skin 1"] = 1 ["Skin 2"] = 2} التصحيح local skins = {["Skin 1"] = 1, ["Skin 2"] = 2}
-
Where is the server side?
-
The problem is ??
-
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 )
-
Maybe you need this: setElementCollidableWith
-
You want increase the width of the column? call(getResourceFromName("scoreboard"), "scoreboardAddColumn", "Occupation", root, 100)
-
كوبي بست مدري من وين جايبه شوف أسم الأوبجيكت يا عزيزي عندك end وشوف كم
-
getPlayerAccount getAccountName aclGetGroup isObjectInACLGroup moveObject
-
https://wiki.multitheftauto.com/wiki/OnClientGUIClick https://wiki.multitheftauto.com/wiki/GuiGridListGetSelectedItem https://wiki.multitheftauto.com/wiki/GuiGridListGetItemText
-
حط كودك الي ما ضبط معك و ايش كنت تبي تسوي
-
Make sure that you have define the image in the meta.xml and the path is correct.
-
You're welcome.
-
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)
