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?