Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 17/08/19 in all areas

  1. Slipe is an open source framework that enables anyone to write scripts for MTA:San Andreas in C# instead of Lua, wrapping all MTA elements and classes and including some .NET Core namespaces. It is based on CSharp.Lua by Yang Huan. Slipe features: Runs on Windows and Linux Built in continuous deployment support with (GitHub) webhooks Object oriented wrappers for all MTA elements Async/await for MTA functions that use callbacks C# style Http requests, sockets and XML methods. Use Visual Studio and its Intellisense Type safety You can find more information about the project on https://prod.mta-slipe.com. Our Discord Our Github The project is still in Alpha, and since it is open source anyone is welcome to contribute
    1 point
  2. Pra "sumir" você precisa dar essa funcionalidade ao script. Use removeEventHandler.
    1 point
  3. O nome do evento tá errado, substitua "onClientRander" por "onClientRender".
    1 point
  4. marker1 = createMarker(2122.7575683594,-1784.9986572266,12.387022018433, "cylinder", 1.5) addEventHandler ("onClientMarkerHit", root, function (hitPlayer, matchingDimension) if isElementWithinMarker (hitPlayer, marker1) then if (getElementType (hitPlayer) == "player") then addEventHandler ("onClientRander", root, DX1) end end end) function DX1 () dxDrawLine (395 - 1, 0 - 1, 395 - 1, 38, tocolor(255, 254, 254, 255), 1, false) dxDrawLine (972, 0 - 1, 395 - 1, 0 - 1, tocolor(255, 254, 254, 255), 1, false) dxDrawLine (395 - 1, 38, 972, 38, tocolor(255, 254, 254, 255), 1, false) dxDrawLine (972, 38, 972, 0 - 1, tocolor(255, 254, 254, 255), 1, false) dxDrawRectangle (395, 0, 577, 38, tocolor(0, 0, 0, 93), false) dxDrawText ("Pizzaria: Temos ... Pizzas disponíveis para entrega", 443, 5, 923, 28, tocolor(255, 255, 255, 255), 1.50, "default-bold", "left", "top", false, false, false, false, false) end
    1 point
  5. مدري تحقق الداتا تاعم فيه غلط كيف مسوي تحقق لداتا وانت مب عاطيه الداتا ذي؟
    1 point
  6. nightly.multitheftauto.com/files/shaders/shader_hud_mask.zip
    1 point
  7. local text = guiGetText( yourGuiElement ); if ( text:find( "@" ) ) then outputChatBox( "contains @" ); else outputChatBox( "contains none " ); end Also you can use pregMatch functions. UPD: http://Lua-users.org/wiki/PatternsTutorial http://www.Lua.org/manual/5.1/manual.html#5.4.1
    1 point
  8. Try this local markers = {} function bagaznik(player) veh = getPedOccupiedVehicle(player) if (not isElement(veh) then return false end if getVehicleDoorOpenRatio(veh, 1) > 0 then setVehicleDoorOpenRatio(veh, 1, 0) if (markers[veh]) then removeEventHandler("onMarkerHit", markers[veh], sprawdzstan) destroyElement(markers[veh]) end return true end tires = getElementData(veh, "trunkTires") if (tires) then return false end setElementData(veh, "trunkTires", true) x,y,z = pozycja(veh, 0, -3, -1) markers[veh] = createMarker (x, y, z, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler("onMarkerHit", markers[veh], sprawdzstan) setVehicleDoorOpenRatio(veh, 1, 1) end addCommandHandler("trunk",bagaznik) What I have changed: 1- I made it so if you use /trunk then it will open trunk if it is closed and do create a marker (which I made it in a table instead of your variable so you can easily destroy your marker afterwards) and if you use /trunk and the trunk is opened, so it will close and destroy the marker (I assumed that you want to do that, if not just remove that line) 2- Changed your method of if statement to another one which is simpler to read.
    1 point
  9. افتح سيرفر ريس DM / DD موداتها ياكثرها على النت
    1 point
  10. ي كثر المودات يوتيوب و جوجل ابحث ما اعتقد احد راح يعطيك قيم مود هو مبرمجه وتعبان عليه على جاهز
    1 point
  11. setElementData() getElementData() You should set the element data of the vehicle and chech that. Like: setElementData(veh, "trunkTires" 1); -- later local tires = getElementData(veh, "trunkTires"); if tires > 0 then setElementData(veh, "trunkTires", tires-1); -- Your get the tire from trunk code else -- No tire in car, handle that too end
    1 point
×
×
  • Create New...