Jump to content

..:D&G:..

Members
  • Posts

    1,028
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by ..:D&G:..

  1. Mod https://community.multitheftauto.com/index.php?p= ... s&id=11150 DONE
  2. Colshape is an invisible area, a square or any other shape. You can use that instead of a marker, more realistic.,
  3. You forgot the '=' between "theTimer" and "setTimer" #Fixed. Thank's You might also want to take the 'local' from "theTimer' off, so it can be triggered outside the 'if' it is in.
  4. You forgot the '=' between "theTimer" and "setTimer"
  5. You are using a leaked script, so we can't help, but just so you know, just start the resource (mysql)
  6. local moneymarker = createMarker (2505.2, -1672.5, 12, "cylinder", 2, 60, 240, 32, 200) function giveMoney(player) if getElementType(player) == "player" then setTimer ( function() givePlayerMoney(player, 50) outputChatBox("Cash money! Cash money!", player, 0, 255, 0) end, 10000, 1 ) --10000 = miliseconds = 10 seconds end end addEventHandler("onMarkerHit", moneymarker, giveMoney)
  7. Wohoo, fiind ca ai vorbit cu mine odata, nu inseamna ca imi fac server cu tine Nici macar nu am vorbit despre server cu tine!
  8. Hello guys, how can I make a ped in a vehicle, that drives on a specific road/routes?
  9. Hello guys, a few years ago there was a very realistic mechanic script, where you had to put the car onto a platform that goes up, and you could take off the vehicle parts, like engine, bars, doors etc, and replace them. Is that mechanic script still around? If it is, please PM me in case it is leaked or something, I don't want to risk getting warns from admins Thanks.
  10. Hey, I am trying to add another gamemode to it, but players get stuck at the "Loading Area" bit. I used the deathmatch gamemode as a template, added the set up and down handlers and then added them to the arenas file, but nothing happens when players join... Any ideas?
  11. Stiu ca erai tu, si de unde sit tu ca TOTI au doar un forum gratuit si un server?
  12. Tu esti vlad stefan!? Ha, nu va recomand sa va bagati cu acest om. Este bun la roleplay dar va lasa imediat. Am vrut sa faca un server cu mine, dar mi-a dat block spunand "Mi-a facut placere sa te cunosc, dar nu cred ca mai avem ce vorbii" Asta din cauza ne stiute... P.S: Acum iubita ta recunoaste cate faci pentru ea?
  13. Am redeschis un alt server cu gamemode-ul vechi... dar vad ca nu prea se observa... Oricum, poate schimb gamemode-ul. P.S. Tu esti unul din fratii Cyrus? Mamaa ce abuzatori erau aia, da era frumos pe atunci, deci.. salut
  14. Nai cu cine (Nu zic de owneri sau admin) ci jucatorii sunt prea incompetenti si freaca toata economia si pacea unui server. Copii vor masinutze si banutzi sa isi ia masinutze, nare rost.
  15. C... ce? Tu doar faci reclama sau ce plm? Oricum toti romanii stiu de 3R, oricum 3R nu e romanesc deci.. WTF?
  16. Hey guys, I made a tanker job and I made it create/attach a trailer on your tanker, and then destroy it when the player exits the vehicle, the trailer will be destroyed. The problem is that the trailer is not destroyed when the player gets out the vehicle, and sometimes there are trailer spawning next to the driver randomly and even when the player is not in a vehicle! Server - local tirpetrol = { [514]=true} function giveCisterna() local vehicle = getPedOccupiedVehicle(client) local x, y, z = getElementPosition(vehicle) local rotX, rotY, rotZ = getElementRotation(vehicle) if vehicle and getVehicleController(vehicle) == client and tirpetrol[getElementModel(vehicle)] then trailer = createVehicle ( 584, x+4, y+1, z, rotX, rotY, rotZ ) attachTrailerToVehicle ( vehicle, trailer ) else if isElement(trailer) then return end end end addEvent("spawnCisterna", true) addEventHandler("spawnCisterna", getRootElement(), giveCisterna) addEventHandler("onVehicleExit", getRootElement(), function(thePlayer, seat) local vehicle = getPedOccupiedVehicle(client) if thePlayer == client and tirpetrol[getElementModel(vehicle)] then destroyElement(trailer) end end ) This is triggered from the client side bit function giveCisterna() local vehicle = getPedOccupiedVehicle(getLocalPlayer()) if vehicle and tirpetrol[getElementModel(vehicle)] then triggerServerEvent ( "spawnCisterna", resourceRoot ) end end addEventHandler("onClientMarkerHit",tirpetrolMarker, giveCisterna)
  17. Hello guys, is there any way to make a created trailer and then attached to a truck, undeattachable?
  18. This is the function with the render, and the function that gives all the errors: function Interaction_System:Render() local x, y, z = getElementPosition(localPlayer) local int, dim = getElementInterior(localPlayer), getElementDimension(localPlayer) if(int ~= getElementInterior(self.col)) then setElementInterior(self.col, int) end if(dim ~= getElementDimension(self.col)) then setElementDimension(self.col, dim) end setElementPosition(self.col, x, y, z); end It is defined a bit more down, in another function. I am saying this again, it worked on my second server but not on my first. Is there any way that another script could intersect with this one and make it stop working?
  19. As I already said, getElementDimension/Interior doesn't get "self.col" as an element, it says that element expected at argument 1...
  20. Hello guys, I got some problems with an interaction system. On my other server it works perfectly, but on my main server it doesn't. I want to get the interior and dimension of an element which is self.col local cFunc = {}; -- Local Functions local cSetting = {}; -- Local Settings Interaction_System = {}; Interaction_System.__index = Interaction_System; function Interaction_System:New(...) local obj = setmetatable({}, {__index = self}); if obj.Constructor then obj:Constructor(...); end return obj; end function Interaction_System:Render() local x, y, z = getElementPosition(localPlayer) local int, dim = getElementInterior(localPlayer), getElementDimension(localPlayer) if(int ~= getElementInterior(self.col)) then setElementInterior(self.col, int) end if(dim ~= getElementDimension(self.col)) then setElementDimension(self.col, dim) end setElementPosition(self.col, x, y, z); end function Interaction_System:HitCol(hitElement) if(isPedInVehicle(localPlayer) == false) then local lastdis = math.huge; for index, ele in pairs(getElementsWithinColShape(self.col)) do if(self.allowedInteraction[getElementType(ele)] == true) and (getElementData(ele, "SLOTMACHINE:LEVER")) then local x, y, z = getElementPosition(localPlayer) local x2, y2, z2 = getElementPosition(ele) if(getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) < lastdis) then lastdis = getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) hitElement = ele end end end if(isElement(hitElement)) then self.interactElement = hitElement; end end end function Interaction_System:LeaveCol(hitElement) self.interactElement = nil; end function Interaction_System:Toggle() if(isElement(self.interactElement)) then if(getElementData(self.interactElement, "SLOTMACHINE:LEVER") == true) then triggerServerEvent("onSlotmachineStartPlayer", self.interactElement, localPlayer) end end end function Interaction_System:Constructor(...) self.renderFunc = function() self:Render() end; self.colHitFunc = function(...) self:HitCol(...) end; self.colLeaveFunc = function(...) self:LeaveCol(...) end; self.toggleFunc = function(...) self:Toggle() end; self.allowedInteraction = { ["object"] = true, ["vehicle"] = true, } self.interactElement = nil; -- Instanzen self.col = createColSphere(0, 0, 0, 4); addEventHandler("onClientRender", getRootElement(), self.renderFunc) addEventHandler("onClientColShapeHit", self.col, self.colHitFunc) addEventHandler("onClientColShapeLeave", self.col, self.colLeaveFunc) bindKey("h", "down", self.toggleFunc) outputDebugString("[CALLING] Interaction_System: Constructor"); end -- EVENT HANDLER -- local interaction_system = Interaction_System:New() Any ideas? I don't get why it works on a server but not on the other..
  21. Adica versiunea United Gaming care se gaseste si pe net gratuit?
  22. Valhalla e vechi, multe functii nu le are, ti-ai cam luat teapa cu 10 euro pentru un gamemode vechi de 4-5 ani
  23. There is no option to take 2x 4GB ram, only 1x 4GB, 1x 8GB and 2x 8GB. I got the stock cooler. Also, the graphics card does not support VGA, which will be a problem, as I will need to buy a new screen that has HDMI. I will ask if the graphics card is a non-reference edition. Thanks again for the advice
  24. Too much fuss and I don't have much free time, but what's your opinion on the build now, is it any good for next gen games? I saw that it will suite GTA 5 as it has the recommended specs.
  25. If I buy them from another store, I will not know if they are compatible and I will not know how to install them By the way, I decided to change the motherboard of the build to an ASUS® H81-Gamer: ATX, LG1150, USB 3.0, SATA 6GBs
×
×
  • Create New...