Matevsz
Members-
Posts
197 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Matevsz
-
Could you give an example of how would you can do it?
-
I wanted to do it with markers, unfortunately I can not loop so wrote out all the steps to moveObject but does not work airship = createVehicle(592, 1921.3000488281, -1735.1999511719, 158*272) markeryLS { a = createMarker(2185.8000488281, -1723.1999511719, 170, "ring", 1.5, 0, 0, 0, 0) b = createMarker(2620, -1764.8000488281, 170, "ring", 1.5, 0, 0, 0, 0) c = createMarker(2649.6999511719, -1188.1999511719, 170, "ring", 1.5, 0, 0, 0, 0) d = createMarker(1378.1999511719, -911.59997558594, 170, "ring", 1.5, 0, 0, 0, 0) e = createMarker(740, -1061.1999511719, 170, "ring", 1.5, 0, 0, 0, 0) f = createMarker(443.89999389648, -1608.4000244141, 170, "ring", 1.5, 0, 0, 0, 0) g = createMarker(1893, -1736.5, 170, "ring", 1.5, 0, 0, 0, 0) } addEventHandler("onMarkerHit",markeryLS, function(vehicle) if getElementType(vehicle)=="vehicle" then if source == markeryLS then moveObject(airship, 600000, 2185.8000488281, -1723.1999511719, 170) end end end ) addEventHandler("onMarkerHit",markeryLS, function(vehicle) if getElementType(vehicle)=="vehicle" then if source == markeryLS then moveObject(airship, 600000, 2620, -1764.8000488281, 170) end end end ) addEventHandler("onMarkerHit",markeryLS, function(vehicle) if getElementType(vehicle)=="vehicle" then if source == markeryLS then moveObject(airship, 600000, 2649.6999511719, -1188.1999511719, 170) end end end ) addEventHandler("onMarkerHit",markeryLS, function(vehicle) if getElementType(vehicle)=="vehicle" then if source == markeryLS then moveObject(airship, 600000, 1378.1999511719, -911.59997558594, 170) end end end ) addEventHandler("onMarkerHit",markeryLS, function(vehicle) if getElementType(vehicle)=="vehicle" then if source == markeryLS then moveObject(airship, 600000, 740, -1061.1999511719, 170) end end end ) addEventHandler("onMarkerHit",markeryLS, function(vehicle) if getElementType(vehicle)=="vehicle" then if source == markeryLS then moveObject(airship, 600000, 443.89999389648, -1608.4000244141, 170) end end end ) addEventHandler("onMarkerHit",markeryLS, function(vehicle) if getElementType(vehicle)=="vehicle" then if source == markeryLS then moveObject(airship, 600000, 1893, -1736.5, 170) end end end )
-
Hello, if can do so that the plane was flying around the city at a speed of 10km / h? in the middle with no player but can be ped?
-
I'm learning to do respawn cars...
-
Hi, what's wrong? <map> <meta> <script src="RespawnCar.lua" type="server" /> <info author="Matevsz" version="1.0" name="Cars" type="map" /> </meta> <vehicle model="420" posX="1778.1000000" posY="-1861.5000000" posZ="13.3000000" rotX="0.0000000" rotY="0.0000000" rotZ="270.0000000" color="235,216" /> <vehicle model="438" posX="1770.3000000" posY="-1861.5000000" posZ="13.6000000" rotX="0.0000000" rotY="0.0000000" rotZ="270.0000000" color="235,216" /> <vehicle model="420" posX="1762.6000000" posY="-1861.5000000" posZ="13.4000000" rotX="0.0000000" rotY="0.0000000" rotZ="270.0000000" color="235,216" /> <vehicle model="438" posX="1788.7000000" posY="-1861.4000000" posZ="13.8000000" rotX="0.0000000" rotY="0.0000000" rotZ="270.0000000" color="235,216" /> <vehicle model="438" posX="1751.3000000" posY="-1861.5000000" posZ="13.8000000" rotX="0.0000000" rotY="0.0000000" rotZ="270.0000000" color="235,216" /> <vehicle model="596" posX="1535.8000000" posY="-1667.6000000" posZ="13.2000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="-1,-1" /> <vehicle model="596" posX="1535.8000000" posY="-1678.1000000" posZ="13.2000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="-1,-1" /> <vehicle model="596" posX="1602.3000000" posY="-1684.0000000" posZ="5.7000000" rotX="0.0000000" rotY="0.0000000" rotZ="270.0000000" color="-1,-1" /> <vehicle model="596" posX="1602.4000000" posY="-1692.0000000" posZ="5.7000000" rotX="0.0000000" rotY="0.0000000" rotZ="270.0000000" color="-1,-1" /> <vehicle model="596" posX="1602.3000000" posY="-1700.0000000" posZ="5.7000000" rotX="0.0000000" rotY="0.0000000" rotZ="270.0000000" color="-1,-1" /> <vehicle model="596" posX="1585.0000000" posY="-1671.6000000" posZ="5.7000000" rotX="0.0000000" rotY="0.0000000" rotZ="270.0000000" color="-1,-1" /> <vehicle model="416" posX="2035.6000000" posY="-1436.2000000" posZ="17.5000000" rotX="0.0000000" rotY="0.0000000" rotZ="178.0000000" color="254,254" /> <vehicle model="416" posX="2030.9000000" posY="-1436.0000000" posZ="17.4000000" rotX="0.0000000" rotY="0.0000000" rotZ="177.9950000" color="254,254" /> <vehicle model="416" posX="2014.2000000" posY="-1417.8000000" posZ="17.3000000" rotX="0.0000000" rotY="0.0000000" rotZ="87.9950000" color="254,254" /> <vehicle model="416" posX="2014.4000000" posY="-1412.0000000" posZ="17.3000000" rotX="0.0000000" rotY="0.0000000" rotZ="87.9950000" color="254,254" /> <vehicle model="407" posX="1755.3000000" posY="-1456.3000000" posZ="13.9000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="169,-1" /> <vehicle model="407" posX="1751.8000000" posY="-1456.4000000" posZ="13.9000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="169,-1" /> <vehicle model="407" posX="1747.6000000" posY="-1456.5000000" posZ="13.9000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="169,-1" /> <vehicle model="407" posX="1744.1000000" posY="-1456.6000000" posZ="13.9000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="169,-1" /> <vehicle model="509" posX="1497.2000000" posY="-1656.0000000" posZ="13.6000000" rotX="0.0000000" rotY="0.0000000" rotZ="274.0000000" color="22,34" /> <vehicle model="481" posX="1497.2000000" posY="-1655.2000000" posZ="13.6000000" rotX="0.0000000" rotY="0.0000000" rotZ="274.0000000" color="93,126" /> <vehicle model="510" posX="1497.2000000" posY="-1654.4000000" posZ="13.6000000" rotX="0.0000000" rotY="0.0000000" rotZ="272.0000000" color="109,122" /> <vehicle model="574" posX="1639.4000000" posY="-1886.2000000" posZ="13.3000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="165,169" /> <vehicle model="574" posX="1637.3000000" posY="-1886.2000000" posZ="13.3000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="165,169" /> <vehicle model="574" posX="1635.2000000" posY="-1886.2000000" posZ="13.3000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="165,169" /> <vehicle model="574" posX="1633.0000000" posY="-1886.1000000" posZ="13.3000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="165,169" /> <vehicle model="574" posX="1630.7000000" posY="-1886.1000000" posZ="13.3000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="165,169" /> <vehicle model="407" posX="-2021.7000000" posY="75.4000000" posZ="28.4000000" rotX="0.0000000" rotY="0.0000000" rotZ="270.0000000" color="185,-1" /> <vehicle model="407" posX="-2021.8000000" posY="83.8000000" posZ="28.4000000" rotX="0.0000000" rotY="0.0000000" rotZ="270.0000000" color="185,-1" /> <vehicle model="407" posX="-2021.9000000" posY="92.7000000" posZ="28.4000000" rotX="0.0000000" rotY="0.0000000" rotZ="270.0000000" color="185,-1" /> <vehicle model="420" posX="-1993.7000000" posY="123.2000000" posZ="27.4000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="246,232" /> <vehicle model="438" posX="-1993.7000000" posY="129.8000000" posZ="27.7000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="246,232" /> <vehicle model="420" posX="-1993.7000000" posY="137.0000000" posZ="27.4000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="246,232" /> <vehicle model="438" posX="-1993.7000000" posY="143.6000100" posZ="27.7000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="246,232" /> <vehicle model="420" posX="-1993.7000000" posY="150.8999900" posZ="27.4000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="246,232" /> <vehicle model="438" posX="-1993.7000000" posY="158.1000100" posZ="27.7000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="246,232" /> <vehicle model="420" posX="-1993.7000000" posY="165.8999900" posZ="27.4000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="246,232" /> <vehicle model="438" posX="-1993.7000000" posY="173.2000000" posZ="27.7000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="246,232" /> <vehicle model="574" posX="-1979.0000000" posY="955.9000200" posZ="45.2000000" rotX="0.0000000" rotY="0.0000000" rotZ="180.0000000" color="165,169" /> <vehicle model="574" posX="-1981.7000000" posY="955.9000200" posZ="45.2000000" rotX="0.0000000" rotY="0.0000000" rotZ="180.0000000" color="165,169" /> <vehicle model="574" posX="-1984.3000000" posY="955.9000200" posZ="45.2000000" rotX="0.0000000" rotY="0.0000000" rotZ="180.0000000" color="165,169" /> <vehicle model="574" posX="-1987.0000000" posY="955.9000200" posZ="45.2000000" rotX="0.0000000" rotY="0.0000000" rotZ="180.0000000" color="165,169" /> <vehicle model="574" posX="-1989.8000000" posY="955.9000200" posZ="45.2000000" rotX="0.0000000" rotY="0.0000000" rotZ="180.0000000" color="165,169" /> <vehicle model="416" posX="-2632.3999000" posY="608.9000200" posZ="14.8000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="254,254" /> <vehicle model="416" posX="-2637.0000000" posY="608.7999900" posZ="14.8000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="254,254" /> <vehicle model="416" posX="-2641.3000000" posY="608.7999900" posZ="14.8000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="254,254" /> <vehicle model="416" posX="-2654.5000000" posY="608.7000100" posZ="14.8000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="254,254" /> <vehicle model="416" posX="-2659.2000000" posY="608.7000100" posZ="14.8000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="254,254" /> <vehicle model="416" posX="-2664.3000000" posY="608.7999900" posZ="14.8000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="254,254" /> <vehicle model="509" posX="-1970.5000000" posY="884.2000100" posZ="44.8000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="37,37" /> <vehicle model="481" posX="-1971.3000000" posY="884.0999800" posZ="44.8000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="214,218" /> <vehicle model="510" posX="-1972.0000000" posY="884.0999800" posZ="44.9000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="157,152" /> <vehicle model="449" posX="-2265.0000000" posY="534.0000000" posZ="35.5000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="245,245" /> <vehicle model="538" posX="-1948.0000000" posY="141.5000000" posZ="27.1000000" rotX="0.0000000" rotY="0.0000000" rotZ="358.0000000" color="245,245" /> <vehicle model="416" posX="1626.5000000" posY="1819.3000000" posZ="11.1000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="254,254" /> <vehicle model="416" posX="1622.8000000" posY="1819.2000000" posZ="11.1000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="254,254" /> <vehicle model="416" posX="1593.0000000" posY="1819.3000000" posZ="11.1000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="254,254" /> <vehicle model="416" posX="1589.2000000" posY="1819.3000000" posZ="11.1000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="254,254" /> <vehicle model="598" posX="2277.2000000" posY="2424.8000000" posZ="10.7000000" rotX="0.0000000" rotY="0.0000000" rotZ="90.0000000" color="-1,-1" /> <vehicle model="598" posX="2284.3999000" posY="2424.8000000" posZ="10.7000000" rotX="0.0000000" rotY="0.0000000" rotZ="90.0000000" color="-1,-1" /> <vehicle model="598" posX="2297.5000000" posY="2424.8999000" posZ="10.7000000" rotX="0.0000000" rotY="0.0000000" rotZ="90.0000000" color="-1,-1" /> <vehicle model="598" posX="2304.7000000" posY="2424.8999000" posZ="10.7000000" rotX="0.0000000" rotY="0.0000000" rotZ="90.0000000" color="-1,-1" /> <vehicle model="598" posX="2252.1001000" posY="2442.3999000" posZ="10.7000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="-1,-1" /> <vehicle model="598" posX="2256.1001000" posY="2442.5000000" posZ="10.7000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="-1,-1" /> <vehicle model="598" posX="2260.3999000" posY="2442.3000000" posZ="10.7000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="-1,-1" /> <vehicle model="598" posX="2251.8000000" posY="2476.3000000" posZ="10.7000000" rotX="0.0000000" rotY="0.0000000" rotZ="180.0000000" color="-1,-1" /> <vehicle model="598" posX="2256.1001000" posY="2476.2000000" posZ="10.7000000" rotX="0.0000000" rotY="0.0000000" rotZ="180.0000000" color="-1,-1" /> <vehicle model="598" posX="2260.6001000" posY="2476.3000000" posZ="10.7000000" rotX="0.0000000" rotY="0.0000000" rotZ="180.0000000" color="-1,-1" /> <vehicle model="509" posX="2331.5000000" posY="2335.8999000" posZ="10.4000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="22,34" /> <vehicle model="481" posX="2331.5000000" posY="2333.3999000" posZ="10.4000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="165,169" /> <vehicle model="510" posX="2331.3999000" posY="2330.8999000" posZ="10.5000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="42,119" /> <vehicle model="420" posX="2839.3000000" posY="1375.2000000" posZ="10.6000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="246,232" /> <vehicle model="438" posX="2842.6001000" posY="1375.0000000" posZ="10.7000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="246,232" /> <vehicle model="420" posX="2845.8000000" posY="1375.1000000" posZ="10.6000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="246,232" /> <vehicle model="438" posX="2849.0000000" posY="1374.8000000" posZ="11.0000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="246,232" /> <vehicle model="438" posX="2813.5000000" posY="1374.8000000" posZ="10.9000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="246,232" /> <vehicle model="420" posX="2810.2000000" posY="1374.9000000" posZ="10.6000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="246,232" /> <vehicle model="438" posX="2806.8999000" posY="1374.8000000" posZ="10.9000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="246,232" /> <vehicle model="574" posX="1881.6000000" posY="2148.0000000" posZ="10.6000000" rotX="0.0000000" rotY="0.0000000" rotZ="270.0000000" color="165,169" /> <vehicle model="574" posX="1881.6000000" posY="2145.1001000" posZ="10.6000000" rotX="0.0000000" rotY="0.0000000" rotZ="270.0000000" color="165,169" /> <vehicle model="574" posX="1881.6000000" posY="2142.2000000" posZ="10.6000000" rotX="0.0000000" rotY="0.0000000" rotZ="270.0000000" color="165,169" /> <vehicle model="574" posX="1881.6000000" posY="2139.3000000" posZ="10.6000000" rotX="0.0000000" rotY="0.0000000" rotZ="270.0000000" color="165,169" /> <vehicle model="574" posX="1881.7000000" posY="2136.3000000" posZ="10.6000000" rotX="0.0000000" rotY="0.0000000" rotZ="270.0000000" color="165,169" /> <vehicle model="407" posX="1750.8000000" posY="2077.6001000" posZ="11.2000000" rotX="0.0000000" rotY="0.0000000" rotZ="180.0000000" color="169,-1" /> <vehicle model="407" posX="1757.0000000" posY="2077.8000000" posZ="11.2000000" rotX="0.0000000" rotY="0.0000000" rotZ="180.0000000" color="169,-1" /> <vehicle model="407" posX="1763.5000000" posY="2077.7000000" posZ="11.2000000" rotX="0.0000000" rotY="0.0000000" rotZ="180.0000000" color="169,-1" /> <vehicle model="407" posX="1770.1000000" posY="2077.8000000" posZ="11.2000000" rotX="0.0000000" rotY="0.0000000" rotZ="180.0000000" color="169,-1" /> <vehicle model="597" posX="-1591.1000000" posY="722.0000000" posZ="9.2000000" rotX="0.0000000" rotY="0.0000000" rotZ="270.0000000" color="-1,-1" /> <vehicle model="597" posX="-1584.6000000" posY="722.0999800" posZ="8.1000000" rotX="0.0000000" rotY="0.0000000" rotZ="270.0000000" color="-1,-1" /> <vehicle model="597" posX="-1613.2000000" posY="722.0999800" posZ="13.2000000" rotX="0.0000000" rotY="0.0000000" rotZ="270.0000000" color="-1,-1" /> <vehicle model="597" posX="-1619.8000000" posY="722.0999800" posZ="14.3000000" rotX="0.0000000" rotY="0.0000000" rotZ="270.0000000" color="-1,-1" /> <vehicle model="597" posX="-1581.7000000" posY="651.7999900" posZ="7.1000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="-1,-1" /> <vehicle model="597" posX="-1593.7000000" posY="652.0999800" posZ="7.1000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="-1,-1" /> <vehicle model="597" posX="-1605.3000000" posY="652.0000000" posZ="7.1000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="-1,-1" /> <vehicle model="597" posX="-1616.6000000" posY="651.7999900" posZ="7.1000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="-1,-1" /> <vehicle model="597" posX="-1628.5000000" posY="651.7000100" posZ="7.1000000" rotX="0.0000000" rotY="0.0000000" rotZ="0.0000000" color="-1,-1" /> </map> And S: addEventHandler("onVehicleRespawn", getRootElement(), function RespawnCar() local samochody = {509, 481, 510, 416, 438, 407, 596, 598, 597, 420, 538, 574, 449} local accName = getAccountName(getPlayerAccount(player)) if not isObjectInACLGroup("user."..accName,aclGetGroup("player")) then return end samochody = xmlLoadFile("meta.xml") setTimer(respawnVehicle, 600000, 1, source) end end )
-
I remove but it does not do anything I think you need to remove something from the login client.lua (race) My meta.xml: <meta> <file src="loginImage/background.jpg" /> <file src="loginImage/background2.jpg" /> <file src="loginImage/password.png" /> <file src="loginImage/person.png" /> <file src="loginImage/button.png" /> <file src="loginImage/switchBackground.png" /> <file src="loginImage/switchCenter.png" /> <file src="loginImage/switchSlide.png" /> <script src="dx_lib.lua" type="client" /> <script src="login_client.lua" type="client" /> <script src="login_server.lua" type="server" /> </meta>
-
@Edit now, i have 0 errors, but black screen Please see whether you work you. http://speedy.sh/Kvcqh/LoginPanel.zip in file login_client.lua is this function: function openLogin(colorCode) loginData.loginState = "login" local resource = getResourceFromName("race") if resource then loginData.font,loginData.fontScale,loginData.colorData = call(resource,"getRaceSettings") loginData.font = dxCreateFont(":race/common/race_font.ttf",sY/20,true) or "default-bold" if not loginData.fontScale then loginData.fontScale = sY/100 end if not loginData.colorData then loginData.colorData = {0,176,255} end end if colorCode then local r,g,b = getColorFromString(colorCode) if r and g and b then loginData.colorData = {r,g,b} end end dxLib.font = loginData.font dxLibCreateEdit(loginData.loginEdit,0,0,sX*0.1,sY*0.04,"Nazwa użytkownika","person",20,20,20,loginData.loginAlpha,false,false) dxLibCreateEdit(loginData.passwordEdit,0,0,sX*0.1,sY*0.04,"Twoje hasło","password",20,20,20,loginData.loginAlpha,false,true) loginData.animState = true loginData.animTick = getTickCount() loginData.loginAlpha = 0 loginData.backgroundAlpha = 255 showChat(false) showCursor(true) addEventHandler("onClientRender",getRootElement(),renderLoginInterface) addEventHandler("onClientRender",getRootElement(),renderLoginMessages) loadXMLData() setElementData(localPlayer,"loginState",true,false) end addEvent("onServerWantIniteteLoginPanel",true) addEventHandler("onServerWantIniteteLoginPanel",getRootElement(),openLogin) Login panel will not open without gamemode "race" as a remodel to run without the gamemode "race"?
-
And as usual stations to remove from the normal game Gta San Andreas in MTA?? Then maybe see subtitles for internet radio stations?
-
Hello, why not work me Login Panel? When I turn him from the admin panel that have a LoginPanel and Race gamemode I do not know why: / Flies only the music itself. dx_lib.lua: http://pastebin.com/BBNHDZ7S login_client: http://pastebin.com/fJGrsGLx login_server: http://pastebin.com/F2g2eRgc Help
-
function webBrowserRender() local x, y = 110.7, 1024.15 <--- Set to location you want, very right of screen I'm assuming. dxDrawMaterialLine3D(x, y, TopZ, x, y, BottomZ,webBrowser, 18.2, tocolor(255, 255, 255, 255), x, y+1, 19) end There is only X and Y position my screen has x, y, z, and where now enter a "z"? Screen: Just add "z"? function webBrowserRender() local x, y, z = 1069.2900390625, -1110.424804875, 1995 dxDrawMaterialLine3D(x, y, z, TopZ, x, y, BottomZ,webBrowser, 18.2, tocolor(255, 255, 255, 255), x, y+1, z, 19) end And so I do not work..
-
Hi there, how do to watch movies in their place (x, y, z) of the object (16000)? It is set object at Fort Carson, and I made my interior and how to move the x, y, z? The script is: https://community.multitheftauto.com/in ... s&id=11851
-
I push the "R" and flies music from the radio, but i can not see the subtitles up later continue to push the "R" is flying a normal radio with San Andreas and i see the subtitles and should be the other way around Sorry for english
-
It is better so, only as I stand in a place that speed is 10 km / h Ok.. -130 its cool. Thanks Tell me why as I switch radio stations in my car are those of ordinary radios a subtitles but Internet radio is without subtitles Sorry for bad english [code] local textRadio = "" local currentRadio = "" local currentIndex = 1 local lastGTAChannel = 0 local localPlayer = getLocalPlayer() local sx,sy = guiGetScreenSize () local loltimer = nil local templol = false local radios = {"Radio wylaczone", "Radio Eska Warszawa", "Radio Viva", "Radio Dj Top 50", "Radio Hardstyle", "Radio Polski Hip-Hop ", "Radio Reggae", "Radio Music Party", "Radio Chillout", "Radio RMF FM", "Radio Disco Polo", "Radio Fresh Remix", "Radio Party", "Radio RMF MAXX", } local radioPaths = {0,1,2,3,4,5,6,7,8,9,10,11,12,13, "http://www.radio.pionier.net.pl/stream.pls?radio=eskawarszawamp3", -- eska warszawa "http://static.gaduradio.pl/64.m3u", -- viva "http://polskastacja.pl/play/aac_djtop50.pls", -- dj top 50 "http://listen.di.fm/public3/hardstyle.pls", -- hardstyle "http://www.polskastacja.pl/play/aac_hiphop.pls", -- polski hip-hop "http://www.partyvibe.com:8000/listen.pls", -- reggae "http://4stream.pl:18124/", -- music party "http://85.25.86.69:8100/", -- Radio Chillout "http://217.74.72.11:8000/rmf_fm", -- Radio RMF FM "http://178.32.161.114:9100", -- Radio Disco Polo "http://4stream.pl:18206/listen.pls", -- Radio Fresh Remix "http://www.radioparty.pl:8010/listen.pls", -- Radio Party "http://www.miastomuzyki.pl/n/rmfmaxxx.pls", -- RMF MAXX } local playRadioThing = nil function resetTimer () textRadio = "" end addEventHandler("onClientResourceStart",getResourceRootElement(), function() outputChatBox ("") showPlayerHudComponent ("radio",false) setRadioChannel (0) bindKey ("radio_next","down", function(key,state) local nextIndex = ((currentIndex)%(#radioPaths)) +1 currentIndex = nextIndex local radio = radioPaths[nextIndex] textRadio = radios[nextIndex] if loltimer and isTimer (loltimer) then killTimer (loltimer) end loltimer = setTimer (resetTimer,1000,1) if type (radio) == "number" then setRadioChannel (radio) if playRadioThing then stopSound (playRadioThing) end else setRadioChannel (0) if playRadioThing then stopSound (playRadioThing) end playRadioThing = playSound (radio) end end ) bindKey ("radio_previous","down", -- radio_previous , cofanie kanału function(key,state) local nextIndex = ((currentIndex -2)%(#radioPaths)) +1 currentIndex = nextIndex local radio = radioPaths[nextIndex] textRadio = radios[nextIndex] if loltimer and isTimer (loltimer) then killTimer (loltimer) end loltimer = setTimer (resetTimer,1000,1) if type (radio) == "number" then setRadioChannel (radio) if playRadioThing then stopSound (playRadioThing) end else setRadioChannel (0) if playRadioThing then stopSound (playRadioThing) end playRadioThing = playSound (radio) end end ) end) addEventHandler ("onClientVehicleStartExit",getRootElement(), function(player) if localPlayer == player then if playRadioThing then stopSound (playRadioThing) end setRadioChannel (0) textRadio = "" end end) addEventHandler ("onClientVehicleExit",getRootElement(), function(player) if localPlayer == player then if playRadioThing then stopSound (playRadioThing) end setRadioChannel (0) textRadio = "" end end) function renderRadio () dxDrawText (textRadio,0,0,sx,96,-922761116,2,"sans","center","center",false,false,true) end addEventHandler ("onClientRender",getRootElement(),renderRadio) addEventHandler ("onClientVehicleEnter",getRootElement(), function(player) if localPlayer == player then local radio = radioPaths[currentIndex] textRadio = radios[currentIndex] if loltimer and isTimer (loltimer) then killTimer (loltimer) end loltimer = setTimer (resetTimer,1000,1) if type (radio) == "number" then setRadioChannel (radio) if playRadioThing then stopSound (playRadioThing) end else setRadioChannel (0) if playRadioThing then stopSound (playRadioThing) end playRadioThing = playSound (radio) end end end) _setRadioChannel = setRadioChannel function setRadioChannel (index) templol = true _setRadioChannel (index) end addEventHandler ("onClientPlayerRadioSwitch",getRootElement(), function() if templol == true then if not isPedInVehicle (localPlayer) then setRadioChannel (0) end templol = false else cancelEvent (true) if not isPedInVehicle (localPlayer) then setRadioChannel (0) end end end) addEventHandler("onClientElementDestroy",getRootElement(), function() if source and getElementType (source) == "vehicle" then if source == getPedOccupiedVehicle (localPlayer) then if playRadioThing then stopSound (playRadioThing) end setRadioChannel (0) textRadio = "" end end end) addEventHandler("onClientVehicleExplode",getRootElement(), function() if source and getElementType (source) == "vehicle" then if source == getPedOccupiedVehicle (localPlayer) then if playRadioThing then stopSound (playRadioThing) end setRadioChannel (0) textRadio = "" end end end) function scroll (key, keystate) if canUse == true then if isTimer (scrollTimer) == false then scrollTimer = setTimer ( function () scrollTimer = nil end ,scrollLimit,1 ) if key == "radio_next" or key == "mouse_wheel_up" then -- scroll forwards setRadioStation ("next") elseif key == "radio_previous" or key == "mouse_wheel_down" then -- scroll backwards setRadioStation ("back") end else exSetRadioChannel (lastGTAChannel) end end end bindKey ("radio_next", "both", scroll) bindKey ("radio_previous", "both", scroll) function setRadioStation (st) if (usedStationsCount==0) then if tonumber(st) and st==0 then end end if tonumber(st) then if currentStation then stopSound (currentStation) end if st >= usedStationsCount then currentStationID = usedStationsCount else currentStationID = st end if st == 0 then exSetRadioChannel (0) currentStation = nil stName = "Radio off" stType = 0 else stName = stationsNames[usedStations[currentStationID]] stType = tonumber(stationType[stName]) if stName then if stType == 0 then currentStation =
-
Hello, I have a problem when I'm in the car I have it on the counter 120 km / h, even when you do not go. When I go quickly this tip comes after a counter (max 260). Screenshot: Code: [code] g_root = getRootElement() g_rootElement = getResourceRootElement( getThisResource() ) g_Player = getLocalPlayer() c_EnableScaling = true c_XOffset = 10 c_YOffset = 10 c_ImageW = 200 c_ImageH = 200 c_BarW = 0 c_BarH = 0 c_BarYOffset = 70 c_FireTimeMs = 5000 c_BarAlpha = 120 c_BarFlashInterval = 300 g_tFireStart = nil function drawNeedle() if not isPedInVehicle(g_Player) then hideSpeedometer() end local vehSpeed = getVehicleSpeed() if vehHealth and (vehHealth > 0) then local hp = (vehHealth-250)/750 local curBarLen = hp*g_BarW if curBarLen < 1 then curBarLen = 1 end local r = 255*(1 - hp)/0.5 if r > 255 then r = 255 end local g = 255*hp/0.5 if g > 255 then g = 255 end if g < 0 then g = 0 end if hp >= 0 then g_tFireStart = nil dxDrawRectangle(x + g_ImageW/2 - g_BarW/2, y + g_BarYOffset, curBarLen, g_BarH, tocolor(r, g, 0, c_BarAlpha)) else if not g_tFireStart then g_tFireStart = getTickCount() end local firePerc = (c_FireTimeMs - (getTickCount() - g_tFireStart)) / c_FireTimeMs if firePerc < 0 then firePerc = 0 end local a = c_BarAlpha if (getTickCount()/c_BarFlashInterval)%2 > 1 then a = 0 end dxDrawRectangle(x + g_ImageW/2 - g_BarW/2, y + g_BarYOffset, firePerc*g_BarW, g_BarH, tocolor(255, 0, 0, a)) end end dxDrawImage(x, y, g_ImageW, g_ImageH, "needle.png", vehSpeed, 0, 0, white, true) end function showSpeedometer() guiSetVisible(disc, true) addEventHandler("onClientRender", g_root, drawNeedle) end function hideSpeedometer() guiSetVisible( disc, false) removeEventHandler("onClientRender", g_root, drawNeedle) end function getVehicleSpeed() if isPedInVehicle(g_Player) then local vx, vy, vz = getElementVelocity(getPedOccupiedVehicle(g_Player)) return math.sqrt(vx^2 + vy^2 + vz^2) * 161 end return 0 end addEventHandler("onClientVehicleEnter", g_root, function(thePlayer) if thePlayer == g_Player then showSpeedometer() end end ) addEventHandler("onClientVehicleStartExit", g_root, function(thePlayer) if thePlayer == g_Player then hideSpeedometer() end end ) function round(num) return math.floor(num + 0.3) end function initGui() if disc then destroyElement(disc) end g_screenWidth, g_screenHeight = guiGetScreenSize() local scale if c_EnableScaling then scale = (g_screenWidth/1000 + g_screenHeight/850)/2 else scale = 1 end g_XOffset = round(c_XOffset*scale) g_YOffset = round(c_YOffset*scale) g_ImageW = round(c_ImageW*scale) g_ImageH = round(c_ImageH*scale) g_BarW = round(c_BarW*scale) g_BarH = round(c_BarH*scale) g_BarYOffset = round(c_BarYOffset*scale) disc = guiCreateStaticImage(g_screenWidth - g_ImageW - g_XOffset, g_screenHeight - g_ImageH - g_YOffset, g_ImageW, g_ImageH, "disc.png", false) x, y = guiGetPosition(disc, false) end addEventHandler("onClientResourceStart", g_rootElement, function () initGui() guiSetVisible(disc, false) setTimer(function() local w, h = guiGetScreenSize() if (w ~= g_screenWidth) or (h ~= g_screenHeight) then initGui() end end, 500, 0) if isPedInVehicle(g_Player) then showSpeedometer() end end ) [/code]
-
Hello, when I push the "R" is you can not see the names of the radio. debugscript 3 Warning Bad argument @ 'dxDrawText' [expected string at argument 1, got nil] function renderRadio () dxDrawText (textRadio,0,0,sx,96,-922761116,2,"sans","center","center",false,false,true) end addEventHandler ("onClientRender",getRootElement(),renderRadio) In this line is error.
-
how to delete this object? if isElement(--[[ element here]]) then destroyElement(--[[ element here]]) end not work
-
I have x, y, z current object, and x, y, z new facility, located a little above the current object, and now as I am doing CreateObject only a new object there on the server I and the current and new .., how to remove the current? Sorry for english
-
Hi, I'm doing a new property and I have to have new x, y, z so I put one object to another to have x, y, z and you sleep new x, y, z I have 2 objects, I use: LSEye = createObject(6298,389.7734375,-2028.46875,19.804689407349,0,0,270) -- Old LSEye destroyElement(LSEye) LSEye2 = createObject(6298,389.79998779297,-2028.5,34.599998474121,0,0,270) -- New LSEye kosciolS = createObject(8130,1493.8000488281,751.09997558594,20.799999237061) -- Kościół LV Old destroyElement(kosciolS) kosciolN = createObject(8130,1493.8000488281,751.09997558594,35.400001525879) -- Kościół LV New And not work, still 2 objects
-
Hello, I create a car radio and as I switch radio stations and station have my name it goes normal music from the GTA, and how to get it on Radio Off, and there is no station names and jade further it goes the music from the station ... Sorry for English
-
as I click the left mouse button, you can still fight: /
-
addEventHandler("onClietPlayerWeaponFire", root, function() if (isElement(localPlayer)) and (getElementType(localPlayer) == "player") then toggleControl("fire", false) toggleControl("aim_weapon", false) end end) not work
-
Hello, how to blocked fight? (if left mouse click)
-
it's already removed in my code man you are wasting your time read the wiki page before you start scripting , as i told you many things wrong in your code . more than that i'm pretty sure that you are not the owner of this script. simply because getSkinsTable it's not defined in your code so how you want to make the script working without checking the skins category. i will never help you again. Why is that? because the script edits? You're right it is not mine script, but I corrected him under my server, that's what I can do and what I can not ask in the forum ... Why not see the list of skinheads in the gridList? Debugscript - Client (15), bad argument @ 'setElementModel' [expected number at argument 2, not nil] SS: C: local screenWidth, screenHeight = guiGetScreenSize() function createSkinWindow() windowWidth, windowHeight = 335, 414 windowX, windowY = (screenWidth / 1) - (windowWidth / 1), (screenHeight / 2) - (windowHeight / 2) skinWindow = guiCreateWindow(windowX, windowY, windowWidth, windowHeight, "Skin Shop", false) guiSetAlpha(skinWindow, 1) skinGridlist = guiCreateGridList(9, 25, 317, 325, false, skinWindow) skinTitleColumn = guiGridListAddColumn(skinGridlist, "Nazwa", 0.45) skinIDColumn = guiGridListAddColumn(skinGridlist, "ID", 0.2) skinExitButton = guiCreateButton(194, 371, 132, 33, "Zamknij", false, skinWindow) guiSetVisible(skinWindow, false) --Events addEventHandler("onClientGUIClick", skinExitButton, function () guiSetVisible(skinWindow, false) showCursor(false) setPlayerHudComponentVisible("all", false) setElementModel(localPlayer, model) setElementFrozen(localPlayer, false) end, false) addEventHandler("onClientGUIDoubleClick", skinGridlist, previewSkin, false) end addEventHandler("onClientResourceStart", resourceRoot, createSkinWindow) function showSkin(skinsTable) guiGridListClear(skinGridlist) setElementFrozen(localPlayer, true) for category, skins in pairs(skinsTable) do local row = guiGridListAddRow(skinGridlist) guiGridListSetItemText(skinGridlist, row, 1, category, true, false) for id, name in pairs(skins) do local row = guiGridListAddRow(skinGridlist) guiGridListSetItemText(skinGridlist, row, 1, name, false, false) guiGridListSetItemText(skinGridlist, row, 2, id, false, false) end end guiSetVisible(skinWindow, true) showCursor(true) model = getElementModel(localPlayer) end addEvent("clothes.showSkin", true) addEventHandler("clothes.showSkin", root, showSkin) function previewSkin() local row = guiGridListGetSelectedItem(skinGridlist) if (not row or row == -1) then return end local id = guiGridListGetItemText(skinGridlist, row, 2) id = tonumber(id) if (not id) then return end setElementModel(localPlayer, id) end function buySkin() local row = guiGridListGetSelectedItem(skinGridlist) if (not row or row == -1) then return end local id = guiGridListGetItemText(skinGridlist, row, 2) id = tonumber(id) if (not id) then return end setElementModel(localPlayer, model) setElementFrozen(localPlayer, false) guiSetVisible(skinWindow, false) showCursor(false) triggerServerEvent("clothes.buySkin", root, id) triggerServerEvent("clothes.buySkin", root, id) end function showGui() guiSetVisible(skinWindow, true) showCursor(true) end addEvent("ShowGui", true) addEventHandler("ShowGui",root,showGui)
-
well then I removed the function Pokaz Gui () and changed the marker. New GUI also changed because those were bad. Now it looks like this: C: And now after the removal Slideshow Gui () you can not even see the cursor
-
hmm no gui and no errors