
sel3a
Members-
Posts
33 -
Joined
-
Last visited
Everything posted by sel3a
-
Thanks mate just fixed something :PP Thank you mate i really appreciate it.
-
Well still.. Not working pff Anyway fuck it.. i'll try later or i'll ask someone else, thanks mate anyway.
-
well when i hit the col and after that i leave then hit the col again the gate will rotate too many times, and it will rotate randomly.. Is there any solution ? thanks.
-
Well u didn't understood me, I meant that can u just help me witth this gate, i want to make like a real door, or a garage, that turn right and then turn back. Or like a real door, that rotate 90° then go back to 0° see what i mean ? thanks.
-
hello guys, i hope you guys will answer my question!! I'd like to make a moving gate like in real life gate,I have this script but It didn't work, I wont the both object to move right and left same as this one http://max.wilsonsd.org:8080/Clip_Art/Pmpa1/buildings/doors/iron_gate_open_close_hc.gif anyone can help me to make it ? since it didn't work here is the script. i've tried to do this but heh.... didn't work a51gate1 = createObject ( 3049, 2491.2, -1661.3, 14.6 ) a51col = createColCircle ( 2492.2, -1663.3, 14.6 ) function opena51gates(thePlayer) local team = getPlayerTeam(thePlayer) if not team then return end if getTeamName(team) == "Criminals" then moveObject (a51gate1, 8000, 2491.2, -1661.3, 14.6 ) setTimer (moveObject, 3500, 1, a51gate1, 1000, 3049, 2491.2, -1661.3, 14.6, 0, 0, 306) ob1 = setTimer (function () end, 5000, 1) end end addEventHandler( "onColShapeHit", a51col, opena51gates ) end end addEventHandler( "onColShapeHit", a51col, opena51gates ) function closea51gates(thePlayer) local team = getPlayerTeam(thePlayer) if not team then return end if getTeamName(team) == "Criminals" then moveObject (a51gate1, 4000, 2491.2, -1661.3, 14.6 ) end end addEventHandler( "onColShapeLeave", a51col, closea51gates )
-
I'd like to make a moving gate like in real life gate,I have this script but It didn't work, I wont the both object to move right and left same as this one http://max.wilsonsd.org:8080/Clip_Art/Pmpa1/buildings/doors/iron_gate_open_close_hc.gif But using 2 gate objects in mtasa, anyone can help me to make it ? since it didn't work here is the script. i've tried to do this but heh.... didn't work a51gate1 = createObject ( 3049, 2491.2, -1661.3, 14.6 ) a51col = createColCircle ( 2492.2, -1663.3, 14.6 ) function opena51gates(thePlayer) local team = getPlayerTeam(thePlayer) if not team then return end if getTeamName(team) == "Criminals" then moveObject (a51gate1, 8000, 2491.2, -1661.3, 14.6 ) setTimer (moveObject, 3500, 1, a51gate1, 1000, 3049, 2491.2, -1661.3, 14.6, 0, 0, 306) ob1 = setTimer (function () end, 5000, 1) end end addEventHandler( "onColShapeHit", a51col, opena51gates ) end end addEventHandler( "onColShapeHit", a51col, opena51gates ) function closea51gates(thePlayer) local team = getPlayerTeam(thePlayer) if not team then return end if getTeamName(team) == "Criminals" then moveObject (a51gate1, 4000, 2491.2, -1661.3, 14.6 ) end end addEventHandler( "onColShapeLeave", a51col, closea51gates )
-
Mate can i ask another question ?
-
Thank you mate this was very helpful.
-
ye i'm I'm using the default MTA:SA Interiors or a teleport script like this. telea1 = createMarker ( 1976.8664550781,986.17248535156,53.738746643066, "arrow", 1.5, 43, 0, 43 ) addEventHandler ("onMarkerHit", telea1, function ( player ) setElementPosition ( player, 1986.685546875,950.34997558594,10.8203125 ) setElementDimension ( player, 0 ) end )
-
Hello gentlemen, i'm trying to do something for a while but my idea didn't succeed anyway i'm trying to make an locked interior like there is a Team called Crazy Boys locked for them they are the only players who are able to enter the .
-
mate i did the script with the marker the color of it keep changing i can't put it but when i remove it it works the marker will be gone but the ''debug script 2'' its keep spamming with. WARNING: [test]\marker\add.lua: 38 Bad argument @ 'setMarkerColor' [Expected element at argument 1] this is the script /: sel3a1 = {} addCommandHandler ( "put", function(plr) team = getPlayerTeam ( plr ) if getTeamName ( team ) ~= "Admin" then return end x,y,z = getElementPosition ( plr ) r1,r2,r3 = getElementRotation ( plr ) Sel3a = createObject ( 3108, x, y, z-1, r1, r2, r3 ) table.insert ( sel3a1, Sel3a ) end) sel3a5002 = {} local v = {sel3a1,sel3a5002} local u = {sel3a1,sel3a5002} addCommandHandler ( "remove", function(plr) team = getPlayerTeam ( plr ) if getTeamName ( team ) ~= "Admin" then return end for k,v in ipairs (sel3a5002) do destroyElement ( v ) end for k,u in ipairs (sel3a1) do destroyElement ( u ) end end) addCommandHandler("put",function(plr) team = getPlayerTeam ( plr ) if getTeamName ( team ) ~= "Admin" then return end x,y,z = getElementPosition ( plr ) r1,r2,r3 = getElementRotation ( plr ) local Sel3a = createMarker ( x, y, z-1, 'cylinder', 1,255,0,0) setTimer(function () if Sel3a then setMarkerColor(Sel3a, math.random(0,255), math.random(0,255), math.random(0,255), 90) table.insert ( sel3a5002, Sel3a) end end,100,0) end)
-
Thank you mate Works fine.
-
Thanks mate works fine but there is one problem it comes a bit high in the middle of the ped!!!! check this link http://i.imgur.com/LESQXGr.jpg huh, how to solve the problem ? and thanks again
-
Guys i am trying to make the marker when you type something it shows up i've made with the objects when you type the command it shows up. but i can't make when type the command a marker shows up. This is the script: sel3a1 = {} addCommandHandler ( "put", function(plr) team = getPlayerTeam ( plr ) if getTeamName ( team ) ~= "Criminals" then return end x,y,z = getElementPosition ( plr ) r1,r2,r3 = getElementRotation ( plr ) Sel3a = createObject ( 3108, x, y, z, r1, r2, r3 ) table.insert ( sel3a1, Sel3a ) end) addCommandHandler ( "remove", function(plr) team = getPlayerTeam ( plr ) if getTeamName ( team ) ~= "Criminals" then return end for k,v in ipairs ( sel3a1 ) do destroyElement ( v ) end end) i tried to change the CreateObject to createMarker like Sel3a = createMarker ( cylinder, x, y, z, r1, r2, r3 ) but it didn't work please help. Thanks
-
OMG really thank you mate that was very helpful.Thanks again
-
hello everyone i'm trying to make a marker that get changed to another color every 1 second or idk anyway random color but i have problem i can't make it i just did when you restart the script the colors will change that's all i can't make automatically So please guys help. The one that i made marker1 = createMarker(566.56482, -1854.94653, 10.31884,"corona",2,0,255,0) marker2 = createMarker(572.39929, -1854.94653, 10.31884,"corona",2,0,255,0) marker3 = createMarker(569.94238, -1876.34033, 7.81884,"corona",2,0,255,0) marker4 = createMarker(569.94238, -1885.66272, 7.81884,"corona",2,0,255,0) marker5 = createMarker(574.48718, -1881.21619, 7.81884,"corona",2,0,255,0) marker6 = createMarker(564.86133, -1881.21619, 7.81884,"corona",2,0,255,0) marker7 = createMarker(564.86133, -1862.84277, 2.98764,"corona",2,0,255,0) marker8 = createMarker(574.36133, -1862.34351, 2.98764,"corona",2,0,255,0) marker9 = createMarker(569.61133, -1856.34351, 2.98764,"corona",2,0,255,0) marker10 = createMarker(573.61133, -1867.71619, 2.98764,"corona",2,0,255,0) marker11 = createMarker(562.86133, -1857.96619, 2.98764,"corona",2,0,255,0) marker12 = createMarker(575.9837, -1857.96619, 2.98764,"corona",2,0,255,0) marker13 = createMarker(578.7334, -1864.4658, 2.98764,"corona",2,0,255,0) marker14 = createMarker(558.7337, -1860.21619, 2.98764,"corona",2,0,255,0) marker15 = createMarker(563.9834, -1864.8437, 10.48764,"corona",2,0,255,0) marker16 = createMarker(574.9837, -1864.84351, 10.48764,"corona",2,0,255,0) marker17 = createMarker(574.9834, -1856.09277, 10.48764,"corona",2,0,255,0) marker18 = createMarker(563.7337, -1856.09351, 10.48764,"corona",2,0,255,0) marker19 = createMarker(569.86823, -1881.03137, 9.91904,"corona",2,0,255,0) marker20 = createMarker(565.74731, -1854.74622, 6.32647,"corona",2,0,255,0) marker21 = createMarker(573.36975, -1854.74622, 6.32647,"corona",2,0,255,0) setMarkerColor(marker1, math.random(0,255), math.random(0,255), math.random(0,255), 90) setMarkerColor(marker2, math.random(0,255), math.random(0,255), math.random(0,255), 90) setMarkerColor(marker3, math.random(0,255), math.random(0,255), math.random(0,255), 90) setMarkerColor(marker4, math.random(0,255), math.random(0,255), math.random(0,255), 90) setMarkerColor(marker5, math.random(0,255), math.random(0,255), math.random(0,255), 90) setMarkerColor(marker6, math.random(0,255), math.random(0,255), math.random(0,255), 90) setMarkerColor(marker7, math.random(0,255), math.random(0,255), math.random(0,255), 90) setMarkerColor(marker8, math.random(0,255), math.random(0,255), math.random(0,255), 90) setMarkerColor(marker9, math.random(0,255), math.random(0,255), math.random(0,255), 90) setMarkerColor(marker10, math.random(0,255), math.random(0,255), math.random(0,255), 90) setMarkerColor(marker11, math.random(0,255), math.random(0,255), math.random(0,255), 90) setMarkerColor(marker12, math.random(0,255), math.random(0,255), math.random(0,255), 90) setMarkerColor(marker13, math.random(0,255), math.random(0,255), math.random(0,255), 90) setMarkerColor(marker14, math.random(0,255), math.random(0,255), math.random(0,255), 90) setMarkerColor(marker15, math.random(0,255), math.random(0,255), math.random(0,255), 90) setMarkerColor(marker16, math.random(0,255), math.random(0,255), math.random(0,255), 90) setMarkerColor(marker17, math.random(0,255), math.random(0,255), math.random(0,255), 90) setMarkerColor(marker18, math.random(0,255), math.random(0,255), math.random(0,255), 90) setMarkerColor(marker19, math.random(0,255), math.random(0,255), math.random(0,255), 90) setMarkerColor(marker20, math.random(0,255), math.random(0,255), math.random(0,255), 90) setMarkerColor(marker21, math.random(0,255), math.random(0,255), math.random(0,255), 90) Thnaks For reading.
-
Thanks mate, That wasn't the one that i was looking for i will just keep trying anyway thank you again
-
all what ik is this i'm no't that pro scripter but i'm trying so can you just show me an example because it that you not going to make the full script because he is really large. function startMusic() setRadioChannel(0) song = playSound3D("http://playerservices.streamtheworld.com/pls/WTMXFM.pls", 2158.0983886719,1611.056640625,999.96807861328, true) setElementDimension(song, 5) setSoundVolume(song, 1) setSoundMaxDistance(song, 100) end function makeRadioStayOff() if not songOff then setSoundVolume(song,0) songOff = true removeEventHandler("onClientPlayerRadioSwitch",getRootElement(),makeRadioStayOff) else setSoundVolume(song, 1) songOff = false setRadioChannel(0) addEventHandler("onClientPlayerRadioSwitch",getRootElement(),makeRadioStayOff) end end addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),startMusic) addEventHandler("onClientPlayerRadioSwitch",getRootElement(),makeRadioStayOff) addEventHandler("onClientPlayerVehicleEnter",getRootElement(),makeRadioStayOff) addCommandHandler("start",makeRadioStayOff) addCommandHandler("stop",makeRadioStayOff) i hope you will answer me! Thanks mate.
-
hey i guys i have a script here working good i've downloaded it from the MTA community but i have one problem only the player who can hear the sound that's all i tried to replace the playSound to playSound3D and too many things but not working so please guys help me. i will show the script here but he is really large anyway i will put the file in a download link. http://www.mediafire.com/download/z8910 ... e/test.lua [spoiler] djscreen = guiCreateStaticImage ( 0.00, 0.3, 1, 0.7, "brushedmetal3.jpg", true ) guiSetVisible (djscreen, false) guiSetAlpha (djscreen, 1) digitalfont = guiCreateFont ( "digital.ttf", 13 ) screen = "main" deckApan = guiCreateStaticImage ( 0.05, 0.27, 0.21, 0.39, "lcd.jpg", true, djscreen ) deckBpan = guiCreateStaticImage ( 0.74, 0.27, 0.21, 0.39, "lcd.jpg", true, djscreen ) ---playA1 = guiCreateStaticImage (0.05, 0.87, 0.09, 0.09, "loopblue.jpg", true, djscreen ) ---playA = guiCreateButton( 0.05, 0.87, 0.09, 0.09, ">", true, djscreen ) ---guiSetAlpha (playA, 0.35) ---playB1 = guiCreateStaticImage ( 0.65, 0.87, 0.09, 0.09, "loopblue.jpg", true, djscreen ) ---playB = guiCreateButton( 0.65, 0.87, 0.09, 0.09, ">", true, djscreen ) ---guiSetAlpha (playB, 0.35) pauseA1 = guiCreateStaticImage ( 0.15, 0.87, 0.09, 0.09, "loopblue.jpg", true, djscreen ) pauseA = guiCreateButton( 0.15, 0.87, 0.09, 0.09, "|| / >", true, djscreen ) guiSetAlpha (pauseA, 0.35) pauseB1 = guiCreateStaticImage ( 0.76, 0.87, 0.09, 0.09, "loopblue.jpg", true, djscreen ) pauseB = guiCreateButton( 0.76, 0.87, 0.09, 0.09, "|| / >", true, djscreen ) guiSetAlpha (pauseB, 0.35) stopA1 = guiCreateStaticImage ( 0.05, 0.87, 0.09, 0.09, "loopblue.jpg", true, djscreen ) stopA = guiCreateButton( 0.05, 0.87, 0.09, 0.09, "X", true, djscreen ) guiSetAlpha (stopA, 0.35) stopB1 = guiCreateStaticImage (0.86, 0.87, 0.09, 0.09, "loopblue.jpg", true, djscreen ) stopB = guiCreateButton( 0.86, 0.87, 0.09, 0.09, "X", true, djscreen ) guiSetAlpha (stopB, 0.35) syncA1 = guiCreateStaticImage ( 0.25, 0.87, 0.09, 0.09, "loopblue.jpg", true, djscreen ) syncA = guiCreateButton( 0.25, 0.87, 0.09, 0.09, "Sync", true, djscreen ) guiSetAlpha (syncA, 0.35) syncB1 = guiCreateStaticImage ( 0.66, 0.87, 0.09, 0.09, "loopblue.jpg", true, djscreen ) syncB = guiCreateButton( 0.66, 0.87, 0.09, 0.09, "Sync", true, djscreen ) guiSetAlpha (syncB, 0.35) loop1A1 = guiCreateStaticImage ( 0.05, 0.78, 0.045, 0.04, "loopblue.jpg", true, djscreen ) loop1A = guiCreateButton( 0.05, 0.78, 0.045, 0.04, "loop 1", true, djscreen ) guiSetAlpha (loop1A, 0.35) loop2A1 = guiCreateStaticImage (0.05, 0.82, 0.045, 0.04, "loopblue.jpg", true, djscreen ) loop2A = guiCreateButton( 0.05, 0.82, 0.045, 0.04, "loop 2", true, djscreen ) guiSetAlpha (loop2A, 0.35) loop4A1 = guiCreateStaticImage ( 0.095, 0.78, 0.0442, 0.04, "loopblue.jpg", true, djscreen ) loop4A = guiCreateButton( 0.095, 0.78, 0.0442, 0.04, "loop 4", true, djscreen ) guiSetAlpha (loop4A, 0.35) loop8A1 = guiCreateStaticImage ( 0.095, 0.82, 0.0442, 0.04, "loopblue.jpg", true, djscreen ) loop8A = guiCreateButton( 0.095, 0.82, 0.0442, 0.04, "loop 8", true, djscreen ) guiSetAlpha (loop8A, 0.55) loop16A1 = guiCreateStaticImage (0.14, 0.78, 0.045, 0.04, "loopblue.jpg", true, djscreen ) loop16A = guiCreateButton( 0.14, 0.78, 0.045, 0.04, "loop 16", true, djscreen ) guiSetAlpha (loop16A, 0.35) loop32A1 = guiCreateStaticImage (0.14, 0.82, 0.045, 0.04, "loopblue.jpg", true, djscreen ) loop32A = guiCreateButton( 0.14, 0.82, 0.045, 0.04, "loop 32", true, djscreen ) guiSetAlpha (loop32A, 0.35) loopoutA1 = guiCreateStaticImage ( 0.185, 0.78, 0.055, 0.08, "loopblue.jpg", true, djscreen ) loopoutA = guiCreateButton( 0.185, 0.78, 0.055, 0.08, "OUT", true, djscreen ) guiSetAlpha (loopoutA, 0.35) loop1B1 = guiCreateStaticImage (0.815, 0.78, 0.0442, 0.04, "loopblue.jpg", true, djscreen ) loop1B = guiCreateButton( 0.815, 0.78, 0.0442, 0.04, "loop 1", true, djscreen ) guiSetAlpha (loop1B, 0.35) loop2B1 = guiCreateStaticImage ( 0.815, 0.82, 0.0442, 0.04, "loopblue.jpg", true, djscreen ) loop2B = guiCreateButton( 0.815, 0.82, 0.0442, 0.04, "loop 2", true, djscreen ) guiSetAlpha (loop2B, 0.35) loop4B1 = guiCreateStaticImage ( 0.86, 0.78, 0.045, 0.04, "loopblue.jpg", true, djscreen ) loop4B = guiCreateButton( 0.86, 0.78, 0.045, 0.04, "loop 4", true, djscreen ) guiSetAlpha (loop4B, 0.35) loop8B1 = guiCreateStaticImage ( 0.86, 0.82, 0.045, 0.04, "loopblue.jpg", true, djscreen ) loop8B = guiCreateButton( 0.86, 0.82, 0.045, 0.04, "loop 8", true, djscreen ) guiSetAlpha (loop8B, 0.35) loop16B1 = guiCreateStaticImage ( 0.905, 0.78, 0.045, 0.04, "loopblue.jpg", true, djscreen ) loop16B = guiCreateButton( 0.905, 0.78, 0.045, 0.04, "loop 16", true, djscreen ) guiSetAlpha (loop16B, 0.35) loop32B1 = guiCreateStaticImage ( 0.905, 0.82, 0.045, 0.04, "loopblue.jpg", true, djscreen ) loop32B = guiCreateButton( 0.905, 0.82, 0.045, 0.04, "loop 32", true, djscreen ) guiSetAlpha (loop32B, 0.35) loopoutB1 = guiCreateStaticImage ( 0.76, 0.78, 0.055, 0.08, "loopblue.jpg", true, djscreen ) loopoutB = guiCreateButton( 0.76, 0.78, 0.055, 0.08, "OUT", true, djscreen ) guiSetAlpha (loopoutB, 0.35) labelA = guiCreateLabel( 0.05, 0.08, 0.35, 0.07, "Deck A", true, djscreen ) labelB = guiCreateLabel( 0.65, 0.08, 0.35, 0.07, "Deck B", true, djscreen ) labelDpltimeA = guiCreateLabel( 0.06, 0.51, 0.10, 0.07,"Playtime:", true, djscreen ) labelDtottimeA = guiCreateLabel( 0.06, 0.56, 0.1, 0.07, "Totaltime:", true, djscreen ) labelDbpmA = guiCreateLabel( 0.06, 0.61, 0.1, 0.07, "BPM:", true, djscreen ) labelDpltimeB = guiCreateLabel( 0.75, 0.51, 0.10, 0.07,"Playtime:", true, djscreen ) labelDtottimeB = guiCreateLabel( 0.75, 0.56, 0.1, 0.07, "Totaltime:", true, djscreen ) labelDbpmB = guiCreateLabel( 0.75, 0.61, 0.1, 0.07, "BPM:", true, djscreen ) guiSetFont( labelDpltimeA , digitalfont) guiSetFont( labelDtottimeA , digitalfont) guiSetFont( labelDbpmA , digitalfont) guiSetFont( labelDpltimeB , digitalfont) guiSetFont( labelDtottimeB , digitalfont) guiSetFont( labelDbpmB , digitalfont) progressBarA = guiCreateProgressBar( 0.05, 0.19, 0.30, 0.07, true, djscreen ) progressBarB = guiCreateProgressBar( 0.65, 0.19, 0.30, 0.07, true, djscreen ) vuBleft = guiCreateStaticImage( 0.74, 0.67, 0.1, 0.1, "0.jpg", true, djscreen ) vuBright = guiCreateStaticImage( 0.85, 0.67, 0.1, 0.1, "0.jpg", true, djscreen ) vuAleft = guiCreateStaticImage( 0.05, 0.67, 0.1, 0.1, "0.jpg", true, djscreen ) vuAright = guiCreateStaticImage( 0.16, 0.67, 0.1, 0.1, "0.jpg", true, djscreen ) digVuAbut = guiCreateButton( 0.36, 0.20, 0.28, 0.04, "Digital standard VU", true, djscreen ) digVu2Abut = guiCreateButton( 0.36, 0.24, 0.28, 0.04, "Digital new VU", true, djscreen ) oldVuAbut = guiCreateButton( 0.36, 0.28, 0.28, 0.04, "Analog VU", true, djscreen ) volumebarAleft = guiCreateProgressBar( 0.05, 0.67, 0.21, 0.05, true, djscreen ) volumebarAright = guiCreateProgressBar( 0.05, 0.72, 0.21, 0.05, true, djscreen ) vu2Aleft = guiCreateStaticImage( 0.05, 0.67, 0.21, 0.05, "d0.jpg", true, djscreen ) vu2Aright = guiCreateStaticImage( 0.05, 0.72, 0.21, 0.05, "d0.jpg", true, djscreen ) vu2Bleft = guiCreateStaticImage( 0.74, 0.67, 0.21, 0.05, "d0.jpg", true, djscreen ) vu2Bright = guiCreateStaticImage( 0.74, 0.72, 0.21, 0.05, "d0.jpg", true, djscreen ) volumebarBleft = guiCreateProgressBar( 0.74, 0.67, 0.21, 0.05, true, djscreen ) volumebarBright = guiCreateProgressBar( 0.74, 0.72, 0.21, 0.05, true, djscreen ) styleVUb = tostring("dig") styleVUa = tostring("dig") guiSetVisible(vuAleft, false) guiSetVisible(vuAright, false) guiSetVisible(vu2Aleft, false) guiSetVisible(vu2Aright, false) guiSetVisible(vu2Bleft, false) guiSetVisible(vu2Bright, false) guiSetVisible(vuBleft, false) guiSetVisible(vuBright, false) labelstatA = guiCreateLabel( 0.06, 0.445, 0.19, 0.07,"no song loaded", true, djscreen ) guiSetFont( labelstatA , digitalfont) labelstatB = guiCreateLabel( 0.75, 0.445, 0.19, 0.07,"no song loaded", true, djscreen ) guiSetFont( labelstatB , digitalfont) volumeA = guiCreateScrollBar (0.33, 0.28, 0.02, 0.48, false, true, djscreen ) volumeB = guiCreateScrollBar (0.65, 0.28, 0.02, 0.48, false, true, djscreen ) searchBarA = guiCreateScrollBar (0.05, 0.14, 0.30, 0.04, true, true, djscreen ) searchBarB = guiCreateScrollBar (0.65, 0.14, 0.30, 0.04, true, true, djscreen ) crossBar = guiCreateScrollBar (0.36, 0.83, 0.27, 0.07, true, true, djscreen ) guiScrollBarSetScrollPosition (crossBar, 50) speedA = guiCreateScrollBar (0.3, 0.28, 0.02, 0.48, false, true, djscreen ) guiScrollBarSetScrollPosition (speedA, 50) speedB = guiCreateScrollBar (0.68, 0.28, 0.02, 0.48, false, true, djscreen ) guiScrollBarSetScrollPosition (speedB, 50) speed1A = guiCreateButton( 0.27, 0.495, 0.02, 0.05, "o", true, djscreen ) speed1B = guiCreateButton( 0.71, 0.495, 0.02, 0.05, "o", true, djscreen ) speed1B = guiCreateButton( 0.71, 0.495, 0.02, 0.05, "o", true, djscreen ) filesBtn = guiCreateButton( 0.36, 0.08, 0.14, 0.05, "Files", true, djscreen ) settingsBtn = guiCreateButton( 0.5, 0.08, 0.14, 0.05, "Settings", true, djscreen ) songGridList = guiCreateGridList(0.36,0.14,0.28,0.51,true,djscreen) guiGridListSetSelectionMode(songGridList,0) songColumn = guiGridListAddColumn(songGridList,"Artist - Title",0.-- s8) --> bpmColumn = guiGridListAddColumn(songGridList,"bpm",0.2) fileColumn = guiGridListAddColumn(songGridList,"file",0.88) songs = { {"Come Get it","http://k12.offliberty.com/wPt6k4GMJ3Q.mp3",0}, {"Maroon 5 - Animals","http://k52.offliberty.com/7BJ3ZXpserc.mp3",0}, {"AntiDJ - Dance or die cd1 Progressive house","http://freedownloads.last.fm/download/254068161/Dance+or+Die+-+CD+1.mp3",0}, {"Avicii - Clubbin @ slamfm 19-11-2011","http://www.hulkshare.com/dl/lzekdtg74ftn/Clubbin%20(slamfm)-sat-11-19-2011?d=1",0}, {"Bobby Burn - I'm from Holland","http://users.telenet.be/melissaris/holland.mp3",0}, {"Beatfreakz - Superfreak","http://shemet.in/~klav/Music/Dance%20Disko%20Electronik/Various/Beatfreakz%20-%20Superfreak%20(Radio%20Edit)%[email protected]",133.05}, {"Bomfunk MCs - Freestyler","http://video.ycv-servers.com/media/audio/old/60826.mp3",0}, {"Cardigans - My favourite game","http://1nsk.me/data/podcast/28/flv/639ae5bd30fc63ad.mp3",0}, {"David Guetta ft Sia - Titanium","http://a.tumblr.com/tumblr_m3j6avWuZ81qch4ruo1.mp3",0}, {"Delinquent Habits - Return of the tres","http://www.hulkshare.com/dl/jnrkenf3625b",0}, {"DJ Shabaz - The Riddle","http://www.hulkshare.com/dl/pr78vbc25tte/?d=1",0}, {"Eminem - The real slim shady","http://1cd.palco.fm/1/c/3/b/beltrao-eminem-the-real-slim-shady.mp3",0}, {"Fatboy slim - Funk soul brother","http://brunodilucca.com/transfer/casamento/musicasok/Fatboy%20Slim%20%20%20Funk%20Soul%20Brother.mp3",0}, {"Gabriella Cilmi - Sweet about me","http://krchnacek.ic.cz/Gabriella%20Cilmi%20-%20Sweet%20About%20Me.mp3",131.95}, {"Gigi Dagostino - Canto do mar","http://www.hulkshare.com/dl/pi9rvgeioxfr/?d=1",0}, {"Gigi Dagostino - Lamour Toujours","http://www.hulkshare.com/dl/zfb2jukqqjvq/Gigi%20d'agostino%20-%20l'amour%20toujours?d=1",0}, {"IAM - Petit frere","http://www.frap.ru/files/perevod/IAM-PetitFrere.mp3",0}, {"Jefferson Airplane - Somebody to love (remix)","http://www.hulkshare.com/dl/7a8g4uiat208",0}, {"John Dahlback - Clubbin' @ slamfm 17-1-2009","http://rs423p3.rapidshare.com/cgi-bin/rsapi.cgi?sub=download&fileid=185043241&filename=john_dahlback_-_clubbin__slamfm_-01-17-2009-UMP3.mp3&dlauth=0123456789",0}, {"Jordy Lishous - Clubbin' @ slamfm 4-2-2011","http://www.hulkshare.com/dl/pdyxnrbt7om0/Clubbin%20(slamfm)-cable-04-02-2011?d=1",0}, {"Knaan - Wavin' flag","http://wolkanca.com/wp-content/uploads/i/ses/knaan-wavin-flag.mp3",0}, {"Luc Margeaux - Vallee des larmes","http://mp3.wp.pl/ftp/t/24/18/181824.mp3",0}, {"Madonna - Miles away","http://api.ning.com/files/E9cdQbNRHB5nRSvSwfGZzchhnlV-8Ayz0TTl0DbOOfIO511Hz0UqrsxJarYuRVCxv1CW6IDJ1MhlXyOqrglqlickkL3KBxi9/n4mbYZlrZHqak6iOpGqCkp6fpKO",116}, {"Marco V - Clubbin @ slamfm 16-6-2012","http://www.hulkshare.com/dl/gt5z401hd8ul/Clubbin_%28SlamFM%29-SAT-06-16-2012_-_www.mixing.dj?d=1",0}, {"Mauro Picotto - Komodo","http://www.hulkshare.com/dl/4h94s8jx38iw/?d=1",137.65}, {"Nicky Minaj - Starships","http://www.hulkshare.com/dl/73vqf09qhlgl/Nicky%20minaj%20-%20starship%20(djtaz)?d=1",0}, {"Outkast - Hey Ya","http://junkyarddawgs.us/media/Out_Kast_-_Hey_Ya.mp3",0}, {"Outkast - Ms. Jackson","http://images.blog-24.com/900000/901000/901000.mp3",0}, {"Psy - Gangnam style","http://a.tumblr.com/tumblr_m8nexkKWB61qlpz0ko1.mp3",0}, {"RTC - Army of Hardcore","http://gratuitfr.free.fr/thunderdome%20-%20army%20of%20hardcore.mp3",0}, {"Shaft - Sway (mucho mambo)","http://www.ddrlover.net/media1107/MP3/mucho_mambo_sway.mp3",0}, {"Shanks & Bigfoot - Sweet like chocolate","http://helgo.net/simon/hornan/Musik/attachments/ISA-Njutare.mp3",0}, {"Swedish House Mafia - Greyhound","http://www.vincesteven.com/IMG/mp3_Swedish_House_Mafia_-_Greyhound_Original-Mix_.mp3",0}, {"Taio Cruz - Dynamite","http://dl.bombmusic.in/Music/Album/Top%2010%20/08%20-%20Taio%20Cruz%20-%20Dynamite.mp3",0}, {"The Dandy Warhols - Bohemian like you","http://www.radiorama.com.br/radiorama/audio/HBO%20-%20The%20Dandy%20Warhols%20-%20Bohemian%20Like%20You.mp3",0}, {"Yolanda be cool - We no speak Americano","http://www.fifa-champions.com/prueba/radio/musica/Yolanda%20Be%20Cool%20&%20Dcup%20-%20We%20No%20Speak%20Americano.mp3",0}, } for i,v in ipairs (songs) do local row = guiGridListAddRow (songGridList) guiGridListSetItemText (songGridList, row, 1, tostring(v[1]), false, true) guiGridListSetItemText (songGridList, row, 2, tonumber(v[3]), false, true) guiGridListSetItemText (songGridList, row, 3, tostring(v[2]), false, true) end loadAbut = guiCreateButton( 0.36, 0.67, 0.135, 0.09, "< load A", true, djscreen ) loadBbut = guiCreateButton( 0.505, 0.67, 0.135, 0.09, "load B >", true, djscreen ) function files() screen = "main" end addEventHandler ( "onClientGUIClick", filesBtn, files, false ) function settings() screen = "settings" end addEventHandler ( "onClientGUIClick", settingsBtn, settings, false ) function initDJwindow() if (screen == "main") then guiSetVisible (songGridList, true) guiSetVisible (loadAbut, true) guiSetVisible (loadBbut, true) end if not (screen == "main") then guiSetVisible (songGridList, false) guiSetVisible (loadAbut, false) guiSetVisible (loadBbut, false) end if (screen == "settings") then guiSetVisible (digVuAbut, true) guiSetVisible (digVu2Abut, true) guiSetVisible (oldVuAbut, true) end if not (screen == "settings") then guiSetVisible (digVuAbut, false) guiSetVisible (digVu2Abut, false) guiSetVisible (oldVuAbut, false) end end addEventHandler ("onClientGUIClick", getRootElement(), initDJwindow) function initDeckA () stopSound(musicA) destroyElement(musicA) if labeltotaltimeA then destroyElement(labeltotaltimeA) end if labelbpmA then destroyElement(labelbpmA) end if labelartistA then destroyElement(labelartistA) end if labeltitleA then destroyElement(labeltitleA) end if labelalbumA then
-
lol dude you gave me a nitro section and damage one i need the car to be locked to the ACL for all the cars i hope that you got it
-
i don't need this i need someting like this function applyHandling() --Applies handling to all cars local vehicleIDs = getAllVehicleIDs() for _,vehicleID in pairs(vehicleIDs) do doNotExecute = false --Listed ID's do not get the handling: local vorbiddenVehicles = { 581, 509, 481, 462, 521, 463, 510, 522, 461, 448, 468, 586, 472, 473, 493, 595, 484, 430, 453, 452, 446, 454 } for _,v in pairs(vorbiddenVehicles) do if v == vehicleID then doNotExecute = true break end end if doNotExecute ~= true then local handlingTable = getOriginalHandling(vehicleID) --The stuff below here is setting the model-handling, you can tweak it however you want :3 --Engine setModelHandling (vehicleID, "engineAcceleration", handlingTable["maxVelocity"]*1.4) setModelHandling (vehicleID, "engineInertia", 90) --Suspension setModelHandling (vehicleID, "suspensionHighSpeedDamping", 0) setModelHandling (vehicleID, "suspensionForceLevel", handlingTable["suspensionForceLevel"]*0.9) setModelHandling (vehicleID, "suspensionLowerLimit", handlingTable["suspensionLowerLimit"]*1.-- s8) --> setModelHandling (vehicleID, "suspensionDamping", handlingTable["suspensionDamping"]*1.-- s8) --> setModelHandling (vehicleID, "turnMass", handlingTable["turnMass"]*1.05) --Brakes setModelHandling (vehicleID, "brakeDeceleration", 3) end end for _,vehicle in ipairs(getElementsByType("vehicle")) do setVehicleHandling(vehicle,false) end end addEventHandler("onResourceStart",getRootElement(getThisResource()),applyHandling) function resetHandling() --Resets handling for all cars local vehicleIDs = getAllVehicleIDs() for _,vehicleID in pairs(vehicleIDs) do for k,_ in pairs(getModelHandling(vehicleID)) do setModelHandling(vehicleID, k, nil) end end for _,vehicle in ipairs(getElementsByType("vehicle")) do setVehicleHandling (vehicle,true) end end addEventHandler("onResourceStop",getRootElement(getThisResource()),resetHandling) function getAllVehicleIDs() --Gets all vehicle-IDs local vehicleIDs = { 602, 545, 496, 517, 401, 410, 518, 600, 527, 436, 589, 580, 419, 439, 533, 549, 526, 491, 474, 445, 467, 604, 426, 507, 547, 585, 405, 587, 409, 466, 550, 492, 566, 546, 540, 551, 421, 516, 529, 592, 553, 577, 488, 511, 497, 548, 563, 512, 476, 593, 447, 425, 519, 520, 460, 417, 469, 487, 513, 581, 510, 509, 522, 481, 461, 462, 448, 521, 468, 463, 586, 472, 473, 493, 595, 484, 430, 453, 452, 446, 454, 485, 552, 431, 438, 437, 574, 420, 525, 408, 416, 596, 433, 597, 427, 599, 490, 432, 528, 601, 407, 428, 544, 523, 470, 598, 499, 588, 609, 403, 498, 514, 524, 423, 532, 414, 578, 443, 486, 515, 406, 531, 573, 456, 455, 459, 543, 422, 583, 482, 478, 605, 554, 530, 418, 572, 582, 413, 440, 536, 575, 534, 567, 535, 576, 412, 402, 542, 603, 475, 449, 537, 538, 441, 464, 501, 465, 564, 568, 557, 424, 471, 504, 495, 457, 539, 483, 508, 571, 500, 444, 556, 429, 411, 541, 559, 415, 561, 480, 560, 562, 506, 565, 451, 434, 558, 494, 555, 502, 477, 503, 579, 400, 404, 489, 505, 479, 442, 458, 606, 607, 610, 590, 569, 611, 584, 608, 435, 450, 591, 594 } return vehicleIDs end but locked to the ACL and with this scrpit 1-- I want a car that never gets destroyed, I mean it can't be damaged, (God Mod For Cars). 1--I want to set for a car a Nitro, I mean when i enter the car, and press CTRLor ALT, Nitro starts, and never stop.
-
Hello Guys, well i am asking too much these days ;P sry for that, anyway i am just addicted to scripting so.. Anyway listen I want to make a script, when i enter to a car it become fast, Any car. I don't want to make it car by car. I just want that when i enter to a car, it become fast, and i want it to be locked to ACL. 2-- I want a car that never gets destroyed, I mean it can't be damaged, (God Mod For Cars). 3--I want to set for a car a Nitro, I mean when i enter the car, and press CTRLor ALT, Nitro starts, and never stop. i will show an example but it's only for one car :3 Thanks everyone, hope that u answer me, Thanks again(heart). -- Bullet -- (299km/h) function handlingChange7 (theVehicle7, seat ) if getElementModel(theVehicle7) == 541 and seat == 0 then local account = getPlayerAccount(source) if (not account or isGuestAccount(account)) then return end local accountName = getAccountName(account) if ( isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "DoNotTouchThis" ) ) ) then setVehicleHandling(theVehicle7, "maxVelocity", 285) setVehicleHandling(theVehicle7, "engineAcceleration", 20) setVehicleHandling(theVehicle7, "driveType", "awd") setVehicleHandling(theVehicle7, "handlingFlags", 0x1008000) end end end addEventHandler ( "onPlayerVehicleEnter", getRootElement(), handlingChange7 )
-
Thanks mate epic fail :3
-
hello, guys i made this script but there is a problem WARNING: [sD]\SDcarspeed\server.lua40: Bad argument @ 'addeventHandler' [Expected function at argument 3, got nil] it's really confusing me! Please help -- FBI Truck -- (272km/h) function handlingChange36 (theVehicle36, seat) if getElementModel(theVehicle36) == 528 and seat == 0 then setVehicleHandling(theVehicle36, "mass", 1600) setVehicleHandling(theVehicle36, "turnMass", 4500) setVehicleHandling(theVehicle36, "tractionMultiplier", 0.75) setVehicleHandling(theVehicle36, "brakeDeceleration", 10) setVehicleHandling(theVehicle36, "brakeBias", 0.53) setVehicleHandling(theVehicle36, "tracionBias", 0.5) setVehicleHandling(theVehicle36, "suspensionForceLevel", 1) setVehicleHandling(theVehicle36, "suspensionDamping", 0.12) setVehicleHandling(theVehicle36, "maxVelocity", 300) setVehicleHandling(theVehicle36, "engineAcceleration", 20) setVehicleHandling(theVehicle36, "suspensionLowerLimit", -0.1) setVehicleHandling(theVehicle36, "driveType", "awd") setVehicleHandling(theVehicle36, "modelFlags", 0x0) setVehicleHandling(theVehicle36, "handlingFlags", 0x1408203) setVehicleHandling(theVehicle36, "collisionDamageMultiplier", 0) end end addEventHandler ( "onPlayerVehicleEnter", getRootElement(), handlingChange36 ) -- Bloodring Banger -- (380km/h) function handlingChange22 (theVehicle6, seat) if getElementModel(theVehicle60) == 504 and seat == 0 then setVehicleHandling(theVehicle60, "maxVelocity", 410) setVehicleHandling(theVehicle60, "engineAcceleration", 40) setVehicleHandling(theVehicle60, "tractionBias", 0.75) setVehicleHandling(theVehicle60, "suspensionLowerLimit", -0.08) setVehicleHandling(theVehicle60, "driveType", "awd") setVehicleHandling(theVehicle60, "modelFlags", 0x312000) setVehicleHandling(theVehicle60, "handlingFlags", 0x5C08400) end end addEventHandler ( "onPlayerVehicleEnter", getRootElement(), handlingChange60 )