eXo|Teteee Posted January 2, 2011 Share Posted January 2, 2011 Hi everyone here we go , i got some problems with the testmarkers (markers with no function) some of them are working and others' not. here is the script: --[[******************************** -- BOOST SCRIPT BY TETE * -- TRY NOT TO COPY! * -- OTHERWISE KILL YOURSELF * --**********************************]] local resRoot = getResourceRootElement(getThisResource()) local root = getRootElement() local screenWidth, screenHeight = guiGetScreenSize() -- addEventHandler("onClientResourceStart", resRoot, function () local testMaker = createMarker( 5074.6621093755, -222.8486328125, 71.801712036133, "corona", 4, 0, 255, 0, 0) local testMaker = createMarker( 5068.912109375, -222.8486328125, 71.801712036133, "corona", 4, 0, 255, 0, 0) local testMaker = createMarker( 5063.162109375, -222.8486328125, 71.801712036133, "corona", 4, 0, 255, 0, 0) local testMaker = createMarker( 5056.912109375, -222.8486328125, 71.801712036133, "corona", 4, 0, 255, 0, 0) local testMaker = createMarker( 5050.4125976563, -222.84869384766, 71.801712036133, "corona", 4, 0, 255, 0, 0) local testMaker = createMarker( 4566.4370117188, -859.23870849609, 46.903495788574, "corona", 4, 0, 255, 239, 0) local testMaker = createMarker( 4564.5717773438, -859.65472412109, 74.730010986328, "corona", 4, 0, 255, 239, 0) local testMaker = createMarker( 3728.0126953125, -1785.029296875, 86.086372375488, "corona", 4, 0, 191, 252, 255) local testMaker = createMarker( 3728.0126953125, -1740.6975097656, 86.086372375488, "corona", 4, 0, 191, 252, 255) local testMaker = createMarker( 4525.6928710938, -920.09649658203, 53.761764526367, "corona", 4, 0, 191, 252, 255) local testMaker = createMarker( 4567.5698242188, -920.09649658203, 72.712348937988, "corona", 4, 0, 191, 252, 255) local testMaker = createMarker( 4604.9467773438, -920.09649658203, 50.3515625, "corona", 4, 0, 191, 252, 255) local testMaker = createMarker( 4566.8837890625, -1239.0541992188, 45.236259460449, "corona", 4, 0, 191, 252, 255) local speedmarker = createMarker(4566.8837890625, -1239.0541992188, 72.712348937988, "corona", 4, 0, 191, 252, 255) addEventHandler("onClientMarkerHit", speedmarker, setVehicleSpeed) end) -- local multiplier = 1.85 local tick function setVehicleSpeed (element) if (getElementType(element) == "player") then if (isPedInVehicle(element)) then if (element == getLocalPlayer()) then local vehicle = getPedOccupiedVehicle(element) local velx, vely, velz = getElementVelocity(vehicle) local newx, newy, newz = velx*multiplier, vely*multiplier, velz*multiplier setElementVelocity(vehicle, newx, newy, newz) addVehicleUpgrade(vehicle, 1010) fixVehicle(vehicle) playSoundFrontEnd(46) tick = getTickCount() addEventHandler("onClientRender", root, drawText) end end end end function drawText() local timePassed = getTickCount() - tick if (timePassed < 4000) then dxDrawText("woho woho woho!", screenHeight/2, screenWidth/2, screenHeight/2, screenWidth/2, tocolor(191,252,255), 1.5, "bankgothic", "center", "center") else removeEventHandler("onClientRender", root, drawText) end end addEventHandler("onClientResourceStop", resRoot, function() outputChatBox("* Script made by Tete", 255, 22, 88) end) those markers are working: local testMaker = createMarker( 3728.0126953125, -1740.6975097656, 86.086372375488, "corona", 4, 0, 191, 252, 255) local testMaker = createMarker( 4525.6928710938, -920.09649658203, 53.761764526367, "corona", 4, 0, 191, 252, 255) local testMaker = createMarker( 4567.5698242188, -920.09649658203, 72.712348937988, "corona", 4, 0, 191, 252, 255) local testMaker = createMarker( 4604.9467773438, -920.09649658203, 50.3515625, "corona", 4, 0, 191, 252, 255) local testMaker = createMarker( 4566.8837890625, -1239.0541992188, 45.236259460449, "corona", 4, 0, 191, 252, 255) and those are not : local testMaker = createMarker( 5074.6621093755, -222.8486328125, 71.801712036133, "corona", 4, 0, 255, 0, 0) local testMaker = createMarker( 5068.912109375, -222.8486328125, 71.801712036133, "corona", 4, 0, 255, 0, 0) local testMaker = createMarker( 5063.162109375, -222.8486328125, 71.801712036133, "corona", 4, 0, 255, 0, 0) local testMaker = createMarker( 5056.912109375, -222.8486328125, 71.801712036133, "corona", 4, 0, 255, 0, 0) local testMaker = createMarker( 5050.4125976563, -222.84869384766, 71.801712036133, "corona", 4, 0, 255, 0, 0) local testMaker = createMarker( 4566.4370117188, -859.23870849609, 46.903495788574, "corona", 4, 0, 255, 239, 0) local testMaker = createMarker( 4564.5717773438, -859.65472412109, 74.730010986328, "corona", 4, 0, 255, 239, 0) any suggestions? Link to comment
Aibo Posted January 2, 2011 Share Posted January 2, 2011 why are you putting them in the same variable? Link to comment
eXo|Teteee Posted January 2, 2011 Author Share Posted January 2, 2011 i know it's weird but ; when i've tried the first 3 markers with same variable , it worked O_O anyway , gonna try to make diffirent variables Link to comment
Aibo Posted January 2, 2011 Share Posted January 2, 2011 well elements will be created regardless whether you save a pointer to them in a variable or not. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now