Rasikh1214 Posted October 8, 2015 Posted October 8, 2015 Guys Please help me I just make Tron light Tail but Like in Tron movie and Game the Vehicle Doesn't Destry when Touch a Line Of Other player Light cycle Wait i Give you The Script its the Client.LUA : -- Save the points linePointX = {} linePointY = {} linePointZ = {} addEventHandler("onClientResourceStart", getRootElement(), function() playSound("http://3a.media.v4.skyrock.net/music/3af/0b2/3af0b22c9b39c5a660fca11e00908225.mp3", false) setTimer( function() if isPedInVehicle(getLocalPlayer()) then local vehicle = getPedOccupiedVehicle(getLocalPlayer()) local velX, velY, velZ = getElementVelocity(vehicle) local theSpeed = (velX^2 + velY^2 + velZ^2)^(0.5) * 1000 if not (theSpeed == 10)then if vehicle then local lX, lY, lZ = getElementPosition(vehicle) if lX and lY and lZ then table.insert(linePointX, lX) table.insert(linePointY, lY) table.insert(linePointZ, lZ-0.5) if(#linePointX > 99999999999)then table.remove(linePointX, 1) table.remove(linePointY, 1) table.remove(linePointZ, 1) end end end end end end, 55, 0) end) -- Draw addEventHandler("onClientRender", getRootElement(), function() for i,d in ipairs(linePointX)do if i then if linePointX and linePointX[i-1] and linePointX[i-2] and linePointX[i-3] and linePointX[i-4] then dxDrawLine3D(linePointX, linePointY, linePointZ, linePointX[i-1], linePointY[i-1], linePointZ[i-1], tocolor(0, 254,255, 255), 25) dxDrawLine3D(linePointX[i-1], linePointY[i-1], linePointZ[i-1], linePointX[i-2], linePointY[i-2], linePointZ[i-2], tocolor(0, 254,255, 255), 25) dxDrawLine3D(linePointX[i-3], linePointY[i-3], linePointZ[i-3], linePointX[i-4], linePointY[i-4], linePointZ[i-4], tocolor(0, 254,255, 255), 25) dxDrawLine3D(linePointX, linePointY, linePointZ+0.2, linePointX[i-1], linePointY[i-1], linePointZ[i-1]+0.2, tocolor(0, 254,255, 255), 25) dxDrawLine3D(linePointX[i-1], linePointY[i-1], linePointZ[i-1]+0.2, linePointX[i-2], linePointY[i-2], linePointZ[i-2]+0.2, tocolor(0, 254,255, 255), 25) dxDrawLine3D(linePointX[i-3], linePointY[i-3], linePointZ[i-3]+0.2, linePointX[i-4], linePointY[i-4], linePointZ[i-4]+0.2, tocolor(0, 254,255, 255), 25) dxDrawLine3D(linePointX, linePointY, linePointZ+0.4, linePointX[i-1], linePointY[i-1], linePointZ[i-1]+0.4, tocolor(0, 254,255, 255), 25) dxDrawLine3D(linePointX[i-1], linePointY[i-1], linePointZ[i-1]+0.4, linePointX[i-2], linePointY[i-2], linePointZ[i-2]+0.4, tocolor(0, 254,255, 255), 25) dxDrawLine3D(linePointX[i-3], linePointY[i-3], linePointZ[i-3]+0.4, linePointX[i-4], linePointY[i-4], linePointZ[i-4]+0.4, tocolor(0, 254,255, 255), 25) dxDrawLine3D(linePointX, linePointY, linePointZ+0.6, linePointX[i-1], linePointY[i-1], linePointZ[i-1]+0.6, tocolor(0, 254,255, 255), 25) dxDrawLine3D(linePointX[i-1], linePointY[i-1], linePointZ[i-1]+0.6, linePointX[i-2], linePointY[i-2], linePointZ[i-2]+0.6, tocolor(0, 254,255, 255), 25) dxDrawLine3D(linePointX[i-3], linePointY[i-3], linePointZ[i-3]+0.6, linePointX[i-4], linePointY[i-4], linePointZ[i-4]+0.6, tocolor(0, 254,255, 255), 25) dxDrawLine3D(linePointX, linePointY, linePointZ+0.8, linePointX[i-1], linePointY[i-1], linePointZ[i-1]+0.8, tocolor(0, 254,255, 255), 25) dxDrawLine3D(linePointX[i-1], linePointY[i-1], linePointZ[i-1]+0.8, linePointX[i-2], linePointY[i-2], linePointZ[i-2]+0.8, tocolor(0, 254,255, 255), 25) dxDrawLine3D(linePointX[i-3], linePointY[i-3], linePointZ[i-3]+0.8, linePointX[i-4], linePointY[i-4], linePointZ[i-4]+0.8, tocolor(0, 254,255, 255), 25) dxDrawLine3D(linePointX, linePointY, linePointZ+1, linePointX[i-1], linePointY[i-1], linePointZ[i-1]+1, tocolor(0, 254,255, 255), 25) dxDrawLine3D(linePointX[i-1], linePointY[i-1], linePointZ[i-1]+1, linePointX[i-2], linePointY[i-2], linePointZ[i-2]+1, tocolor(0, 254,255, 255), 25) dxDrawLine3D(linePointX[i-3], linePointY[i-3], linePointZ[i-3]+1, linePointX[i-4], linePointY[i-4], linePointZ[i-4]+1, tocolor(0, 254,255, 255), 25) end end end end) -------------------------------------------------------------------------------------------------------------------------------------------------- and Here's The meta.xml : -
Rasikh1214 Posted October 8, 2015 Author Posted October 8, 2015 Plz Just Reply I just Convery The NyanCat script And Edit Somelines and Maked the tron tail light but the vehicles doesn't destroy when the touch other player's Line
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