carli

Members
  • Content Count

    6
  • Joined

  • Last visited

Community Reputation

0 Neutral

1 Follower

About carli

  • Rank
    Vic

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. hi I found the mechanic Task System I've done a little bit, but there is a problem problem when I started the task, the marker comes, I'm pulling the tool after the end marker does not give the marker after the end I want to give the marker again I want to leave the code if you help arac_blip = { {2216.41846, -1967.56018, 13.39062}, {2214.03809, -1935.79236, 13.40592}, } binecegi_arac = { [525] = true, } hasOrder = false lastLoc = 0 distance = 0 function startMission (player, seat) local job = exports.GTIemployment:getPlayerJob(true) if (job == "Mechanic" and seat == 0) then if (binecegi_arac[getElementModel(source)] and hasOrder == false and player == localPlayer) then local division = getElementData(player, "division") loc = math.random(#arac_blip) if (loc == lastLoc) then startMission(player, seat) return end delX, delY, delZ = arac_blip[loc][1], arac_blip[loc][2], arac_blip[loc][3] theVehicle = createVehicle(415, delX, delY, delZ + 5) theMarker = createMarker(delX, delY, delZ, "cylinder", 5, 255, 200, 0, 150) delBlip = createBlip(delX, delY, delZ, 55) zone = getZoneName(delX, delY, delZ, false) exports.GTIhud:dm("Çekilmesi gereken bir araba var "..zone, 0, 200, 0) x, y, z = getElementPosition(localPlayer) distance = getDistanceBetweenPoints2D(delX, delY, x, y) hasOrder = true setElementData(localPlayer, "GTItrucker.HasOrder", true) lastLoc = loc addEventHandler("onClientMarkerHit", theMarker, deliverCar) end end end addEventHandler("onClientVehicleEnter", root, startMission) function deliverCar(hitElement) if (isElement(theVehicle) and isPedInVehicle(hitElement) and getElementModel(getPedOccupiedVehicle(hitElement)) == 525) then if (hitElement == localPlayer) then if (isElement(theMarker)) then destroyElement(theMarker) end if (isElement(delBlip)) then destroyElement(delBlip) end local plr = getVehicleOccupant(getPedOccupiedVehicle(localPlayer)) if (isElement(plr)) then delMarker = createMarker(2196.235, -1977.568, 12.55, "cylinder", 3, 255, 200, 0, 150) delBlip = createBlip(2196.235, -1977.568, 12.55, 41) exports.GTIhud:dm("Görevinizi tamamlamak için haritanızdaki blip araba çekin.", 0, 200, 0) addEventHandler("onClientMarkerHit", delMarker, completeMission) end end end end function completeMission(hitElement) if (isElement(hitElement) and isPedInVehicle(hitElement) and getElementModel(getPedOccupiedVehicle(hitElement)) == 525) then if (hitElement == localPlayer) then local veh = getPedOccupiedVehicle(localPlayer) local dis = exports.GTIutil:getDistanceBetweenElements2D(veh, theVehicle) if (dis > 100) then return end if (isElement(theVehicle)) then detachTrailerFromVehicle(getPedOccupiedVehicle(localPlayer), theVehicle) destroyElement(theVehicle) end if (isElement(delMarker)) then destroyElement(delMarker) end if (isElement(delBlip)) then destroyElement(delBlip) end local plr = getVehicleOccupant(getPedOccupiedVehicle(localPlayer)) exports.GTIhud:dm("Başarıyla arabayı çektin ve Los Santos sokaklarını temizledin", 0, 200, 0) local payment = distance triggerServerEvent("GTImechanic.completeMission", localPlayer, localPlayer, payment) hasOrder = false end end end function onQuitJob(job, bool) if (job == "Mechanic" and hasOrder) then if (source == localPlayer) then if (isElement(theVehicle)) then destroyElement(theVehicle) end if (isElement(delMarker)) then destroyElement(delMarker) end if (isElement(delBlip)) then destroyElement(delBlip) end if (isElement(theMarker)) then destroyElement(theMarker) end hasOrder = false end end end addEventHandler("onClientPlayerQuitJob", root, onQuitJob)
  2. hayalet modulasyon addEventHandler("onClientElementStreamIn", resourceRoot, function() if getElementType(source) == "object" then return false end if (not getElementData(source, "rental")) then return end for i,vehicle in ipairs(getElementsByType("vehicle", root, true)) do setElementCollidableWith(source, vehicle, false) end end) addEventHandler("onClientElementStreamIn", root, function() if getElementType(source) == "object" then return false end for i,vehicle in ipairs(getElementsByType("vehicle", resourceRoot, true)) do if (getElementData(vehicle, "rental")) then setElementCollidableWith(source, vehicle, false) end end end)
  3. function setPlayerPosition(x, y, z) if getElementData(g_Me, "timer.setpos") == "cooldown" then errMsg('Please wait at least 30 seconds before seting your position again.') return end if getPedOccupiedVehicle(g_Me) then errMsg('Please leave the vehicle before changing your position.') return end if getElementAttachedTo(g_Me) then errMsg('Please unglue from another object before setting your position.') return end setElementData(g_Me, "timer.setpos", "cooldown") setTimer(setElementData, 30000, 1, g_Me, "timer.setpos", "normal") fadeCamera(false) setTimer( function() I do not think I need to count down from 30 to 30 when I have a problem with water. help keeps 30 countdown no reason why
  4. function setPlayerPosition(x, y, z) if getElementData(g_Me, "timer.setpos") == "cooldown" then errMsg('Please wait at least 30 seconds before seting your position again.') return true end if getPedOccupiedVehicle(g_Me) then errMsg('Please leave the vehicle before changing your position.') return end if getElementAttachedTo(g_Me) then errMsg('Please unglue from another object before setting your position.') return end setElementData(g_Me, "timer.setpos", "cooldown") setTimer(setElementData, 30000, 1, g_Me, "timer.setpos", "true") fadeCamera(false) setTimer( function() setCameraMatrix(x, y, 600) setElementPosition(localPlayer, x, y, 600) setElementInterior(localPlayer, 0) server.setElementInterior(localPlayer, 0) setCameraInterior(0) setCameraTarget(localPlayer) server.giveMeWeapon(46, 1) fadeCamera(true) end, 500, 1) my first problem is slm i problem errMsg ('Please wait at least 30 seconds before seting your position again.') here I clicked the map f1 I have done the map spell I normally need to count down from 30 every time I click on it shows how to solve it
  5. I click on the map once, I get warmed up, then I wait for 30 seconds, then I do not get warmed up, but I keep all 30 as well
  6. The map is warmed up once and then it gives an error. Please wait at least 30 seconds before seting your position again. what is the problem