Feche1320

Members
  • Content Count

    470
  • Joined

  • Last visited

Everything posted by Feche1320

  1. <map edf:definitions="editor_main"> <removeWorldObject id="1" radius="0.25" interior="0" model="4024" lodModel="0" posX="1479.8672" posY="-1790.3984" posZ="56.0234" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="2" radius="0.25" interior="0" model="4044" lodModel="0" posX="1481.1875" posY="-1785.0703" posZ="22.3828" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="3" radius="0.25" interior="0" model="4046" lodModel="0" posX="1479.5234" posY="-1852.6406" posZ="24.5156" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="4" radius="0.25" interior="0" model="4047" lodModel="0" posX="1531.6328" posY="-1852.6406" posZ="24.5156" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="5" radius="0.25" interior="0" model="1527" lodModel="0" posX="1448.2344" posY="-1755.8984" posZ="14.5234" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="6" radius="0.25" interior="0" model="4217" lodModel="0" posX="1449.2500" posY="-1852.5703" posZ="22.3672" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="7" radius="0.25" interior="0" model="713" lodModel="0" posX="1407.1953" posY="-1749.3125" posZ="13.0938" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="8" radius="0.25" interior="0" model="1266" lodModel="0" posX="1482.0859" posY="-1859.9688" posZ="25.0391" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="9" radius="0.25" interior="0" model="1266" lodModel="0" posX="1648.0156" posY="-1795.0703" posZ="25.0391" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="10" radius="0.25" interior="0" model="4229" lodModel="0" posX="1597.9063" posY="-1699.7500" posZ="30.2109" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="11" radius="0.25" interior="0" model="4230" lodModel="0" posX="1597.9063" posY="-1699.7500" posZ="30.2109" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="12" radius="0.25" interior="0" model="4236" lodModel="0" posX="1387.0313" posY="-1715.0234" posZ="30.4141" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="13" radius="0.25" interior="0" model="1261" lodModel="0" posX="1413.6328" posY="-1721.8203" posZ="28.2813" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="14" radius="0.25" interior="0" model="713" lodModel="0" posX="1405.2344" posY="-1821.1172" posZ="13.1016" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="15" radius="0.25" interior="0" model="620" lodModel="0" posX="1417.9766" posY="-1832.5313" posZ="11.9844" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="16" radius="0.25" interior="0" model="673" lodModel="0" posX="1405.5781" posY="-1831.6953" posZ="12.3984" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="17" radius="0.25" interior="0" model="1372" lodModel="0" posX="1419.7344" posY="-1846.5469" posZ="12.6641" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="18" radius="0.25" interior="0" model="1265" lodModel="0" posX="1420.4297" posY="-1845.3438" posZ="12.9844" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="19" radius="0.25" interior="0" model="1372" lodModel="0" posX="1419.6953" posY="-1844.2031" posZ="12.6641" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="20" radius="0.25" interior="0" model="1220" lodModel="0" posX="1420.4922" posY="-1842.4375" posZ="12.9297" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="21" radius="0.25" interior="0" model="1220" lodModel="0" posX="1419.7266" posY="-1842.8516" posZ="12.9297" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="22" radius="0.25" interior="0" model="1230" lodModel="0" posX="1419.6719" posY="-1842.0313" posZ="12.9766" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="23" radius="0.25" interior="0" model="4170" lodModel="0" posX="1433.9531" posY="-1844.4063" posZ="21.4219" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="24" radius="0.25" interior="0" model="700" lodModel="0" posX="1447.1016" posY="-1832.5000" posZ="12.9141" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="25" radius="0.25" interior="0" model="1231" lodModel="0" posX="1432.3047" posY="-1832.9141" posZ="15.2891" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="26" radius="0.25" interior="0" model="4174" lodModel="0" posX="1435.7656" posY="-1823.6641" posZ="15.1797" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="27" radius="0.25" interior="0" model="620" lodModel="0" posX="1456.3984" posY="-1832.5313" posZ="11.9844" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="28" radius="0.25" interior="0" model="673" lodModel="0" posX="1464.0938" posY="-1831.8828" posZ="12.3984" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="29" radius="0.25" interior="0" model="1260" lodModel="0" posX="1482.0859" posY="-1859.9688" posZ="25.0391" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="30" radius="0.25" interior="0" model="4004" lodModel="0" posX="1479.5234" posY="-1852.6406" posZ="24.5156" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="31" radius="0.25" interior="0" model="1231" lodModel="0" posX="1480.0313" posY="-1832.9141" posZ="15.2891" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="32" radius="0.25" interior="0" model="4171" lodModel="0" posX="1503.3984" posY="-1848.3359" posZ="21.4609" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="33" radius="0.25" interior="0" model="620" lodModel="0" posX="1504.8438" posY="-1832.5313" posZ="11.9844" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="34" radius="0.25" interior="0" model="673" lodModel="0" posX="1499.0469" posY="-1832.2734" posZ="12.8828" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="35" radius="0.25" interior="0" model="1265" lodModel="0" posX="1514.4219" posY="-1850.0391" posZ="12.9922" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="36" radius="0.25" interior="0" model="700" lodModel="0" posX="1512.9453" posY="-1832.3516" posZ="13.4688" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="37" radius="0.25" interior="0" model="1372" lodModel="0" posX="1516.6875" posY="-1850.0547" posZ="12.6641" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="38" radius="0.25" interior="0" model="4235" lodModel="0" posX="1387.0313" posY="-1715.0234" posZ="30.4141" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="39" radius="0.25" interior="0" model="700" lodModel="0" posX="1404.9141" posY="-1765.2656" posZ="12.9141" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="40" radius="0.25" interior="0" model="4173" lodModel="0" posX="1427.2734" posY="-1756.1797" posZ="15.0000" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="41" radius="0.25" interior="0" model="673" lodModel="0" posX="1415.3125" posY="-1748.5625" posZ="12.3984" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="42" radius="0.25" interior="0" model="620" lodModel="0" posX="1429.5313" posY="-1748.4219" posZ="12.9063" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="43" radius="0.25" interior="0" model="700" lodModel="0" posX="1438.0313" posY="-1747.9375" posZ="13.4453" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="44" radius="0.25" interior="0" model="620" lodModel="0" posX="1447.9063" posY="-1748.2266" posZ="12.9063" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="45" radius="0.25" interior="0" model="1267" lodModel="0" posX="1413.6328" posY="-1721.8203" posZ="28.2813" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="46" radius="0.25" interior="0" model="4002" lodModel="0" posX="1479.8672" posY="-1790.3984" posZ="56.0234" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="47" radius="0.25" interior="0" model="3980" lodModel="0" posX="1481.1875" posY="-1785.0703" posZ="22.3828" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="48" radius="0.25" interior="0" model="4003" lodModel="0" posX="1481.0781" posY="-1747.0313" posZ="33.5234" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="49" radius="0.25" interior="0" model="620" lodModel="0" posX="1516.0000" posY="-1748.6016" posZ="13.0078" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="50" radius="0.25" interior="0" model="1258" lodModel="0" posX="1510.8906" posY="-1607.3125" posZ="13.6953" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="51" radius="0.25" interior="0" model="4048" lodModel="0" posX="1531.6328" posY="-1852.6406" posZ="24.5156" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="52" radius="0.25" interior="0" model="1372" lodModel="0" posX="1538.9453" posY="-1849.2734" posZ="12.6641" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="53" radius="0.25" interior="0" model="1230" lodModel="0" posX="1538.8359" posY="-1847.6250" posZ="13.6719" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="54" radius="0.25" interior="0" model="1220" lodModel="0" posX="1538.3906" posY="-1847.9297" posZ="12.9297" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="55" radius="0.25" interior="0" model="1220" lodModel="0" posX="1539.1016" posY="-1847.2969" posZ="12.9297" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="56" radius="0.25" interior="0" model="1231" lodModel="0" posX="1529.2891" posY="-1832.9141" posZ="15.2891" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="57" radius="0.25" interior="0" model="620" lodModel="0" posX="1549.5313" posY="-1832.3125" posZ="12.8828" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="58" radius="0.25" interior="0" model="673" lodModel="0" posX="1555.6641" posY="-1830.5938" posZ="13.0234" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="59" radius="0.25" interior="0" model="4175" lodModel="0" posX="1524.4141" posY="-1823.8516" posZ="15.1797" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="60" radius="0.25" interior="0" model="700" lodModel="0" posX="1554.8203" posY="-1816.1563" posZ="13.4766" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="61" radius="0.25" interior="0" model="673" lodModel="0" posX="1553.2578" posY="-1764.8125" posZ="12.7969" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="62" radius="0.25" interior="0" model="4172" lodModel="0" posX="1534.7656" posY="-1756.1797" posZ="15.0000" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="63" radius="0.25" interior="0" model="620" lodModel="0" posX="1533.2656" posY="-1749.0234" posZ="12.8047" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="64" radius="0.25" interior="0" model="673" lodModel="0" posX="1522.1641" posY="-1748.5703" posZ="13.0234" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="65" radius="0.25" interior="0" model="700" lodModel="0" posX="1553.7031" posY="-1747.9375" posZ="13.4063" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="66" radius="0.25" interior="0" model="1260" lodModel="0" posX="1648.0156" posY="-1795.0703" posZ="25.0391" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="67" radius="0.25" interior="0" model="1261" lodModel="0" posX="1680.2813" posY="-1917.7891" posZ="24.5469" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="68" radius="0.25" interior="0" model="4891" lodModel="0" posX="1681.1641" posY="-1966.9922" posZ="31.0859" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <removeWorldObject id="69" radius="0.25" interior="0" model="1267" lodModel="0" posX="1680.2813" posY="-1917.7891" posZ="24.5469" rotX="0" rotY="0" rotZ="0"></removeWorldObject> <object id="70" model="10380" posX="1545.69910" posY="-1779.70654" posZ="21.96600" rotX="0.00000" rotY="0.00000" rotZ="270.00000" dimension="0" interior="0" /> <object id="71" model="10377" posX="1481.13074" posY="-1837.59705" posZ="30.48700" rotX="0.00000" rotY="0.00000" rotZ="90.00000" dimension="0" interior="0" /> <object id="72" model="10380" posX="1413.04736" posY="-1779.67114" posZ="21.96600" rotX="0.00000" rotY="0.00000" rotZ="90.00000" dimension="0" interior="0" /> <object id="73" model="2898" posX="1481.18994" posY="-1745.46472" posZ="12.55000" rotX="0.00000" rotY="0.00000" rotZ="0.00000" dimension="0" interior="0" /> <object id="74" model="2898" posX="1481.18994" posY="-181.37570" posZ="12.55000" rotX="0.00000" rotY="0.00000" rotZ="0.00000" dimension="0" interior="0" /> <object id="75" model="2898" posX="1474.57239" posY="-1804.98926" posZ="12.55000" rotX="0.00000" rotY="0.00000" rotZ="0.00000" dimension="0" interior="0" /> <object id="76" model="2898" posX="1481.18994" posY="-1804.95483" posZ="12.55000" rotX="0.00000" rotY="0.00000" rotZ="0.00000" dimension="0" interior="0" /> <object id="77" model="2898" posX="1481.18994" posY="-1799.54138" posZ="12.55000" rotX="0.00000" rotY="0.00000" rotZ="0.00000" dimension="0" interior="0" /> <object id="78" model="2898" posX="1481.18994" posY="-1794.13306" posZ="12.55000" rotX="0.00000" rotY="0.00000" rotZ="0.00000" dimension="0" interior="0" /> <object id="79" model="2898" posX="1481.18994" posY="-1788.71301" posZ="12.55000" rotX="0.00000" rotY="0.00000" rotZ="0.00000" dimension="0" interior="0" /> <object id="80" model="2898" posX="1481.18994" posY="-1783.30774" posZ="12.55000" rotX="0.00000" rotY="0.00000" rotZ="0.00000" dimension="0" interior="0" /> <object id="81" model="2898" posX="1481.17126" posY="-1777.89636" posZ="12.55000" rotX="0.00000" rotY="0.00000" rotZ="0.00000" dimension="0" interior="0" /> <object id="82" model="2898" posX="1481.18994" posY="-1772.45996" posZ="12.55000" rotX="0.00000" rotY="0.00000" rotZ="0.00000" dimension="0" interior="0" /> <object id="83" model="2898" posX="1481.18994" posY="-1767.05945" posZ="12.55000" rotX="0.00000" rotY="0.00000" rotZ="0.00000" dimension="0" interior="0" /> <object id="84" model="2898" posX="1481.18994" posY="-1761.67761" posZ="12.55000" rotX="0.00000" rotY="0.00000" rotZ="0.00000" dimension="0" interior="0" /> <object id="85" model="2898" posX="1481.18994" posY="-1756.28955" posZ="12.55000" rotX="0.00000" rotY="0.00000" rotZ="0.00000" dimension="0" interior="0" /> <object id="86" model="2898" posX="1481.18994" posY="-1750.87744" posZ="12.55000" rotX="0.00000" rotY="0.00000" rotZ="0.00000" dimension="0" interior="0" /> <object id="87" model="2898" posX="1487.85645" posY="-1745.44629" posZ="12.55000" rotX="0.00000" rotY="0.00000" rotZ="0.00000" dimension="0" interior="0" /> <object id="88" model="2898" posX="1474.57239" posY="-1810.38159" posZ="12.55000" rotX="0.00000" rotY="0.00000" rotZ="0.00000" dimension="0" interior="0" /> <object id="89" model="2898" posX="1474.57239" posY="-1799.60364" posZ="12.55000" rotX="0.00000" rotY="0.00000" rotZ="0.00000" dimension="0" interior="0" /> <object id="90" model="2898" posX="1474.57239" posY="-1794.19885" posZ="12.55000" rotX="0.00000" rotY="0.00000" rotZ="0.00000" dimension="0" interior="0" /> <object id="91" model="2898" posX="1474.57239" posY="-1745.45728" posZ="12.55000" rotX="0.00000" rotY="0.00000" rotZ="0.00000" dimension="0" interior="0" /> <object id="92" model="2898" posX="1474.57239" posY="-1788.80444" posZ="12.55000" rotX="0.00000" rotY="0.00000" rotZ="0.00000" dimension="0" interior="0" /> <object id="93" model="2898" posX="1474.57239" posY="-1783.39160" posZ="12.55000" rotX="0.00000" rotY="0.00000" rotZ="0.00000" dimension="0" interior="0" /> <object id="94" model="2898" posX="1474.57239" posY="-1777.98035" posZ="12.55000" rotX="0.00000" rotY="0.00000" rotZ="0.00000" dimension="0" interior="0" /> <object id="95" model="2898" posX="1474.57239" posY="-1772.56763" posZ="12.55000" rotX="0.00000" rotY="0.00000" rotZ="0.00000" dimension="0" interior="0" /> <object id="96" model="2898" posX="1474.57239" posY="-1767.13062" posZ="12.55000" rotX="0.00000" rotY="0.00000" rotZ="0.00000" dimension="0" interior="0" /> <object id="97" model="2898" posX="1474.57239" posY="-1761.73792" posZ="12.55000" rotX="0.00000" rotY="0.00000" rotZ="0.00000" dimension="0" interior="0" /> <object id="98" model="2898" posX="1474.57239" posY="-1756.31274" posZ="12.55000" rotX="0.00000" rotY="0.00000" rotZ="0.00000" dimension="0" interior="0" /> <object id="99" model="2898" posX="1474.57239" posY="-1750.87988" posZ="12.55000" rotX="0.00000" rotY="0.00000" rotZ="0.00000" dimension="0" interior="0" /> <object id="100" model="2898" posX="1481.18994" posY="-1810.37366" posZ="12.55000" rotX="0.00000" rotY="0.00000" rotZ="0.00000" dimension="0" interior="0" /> <object id="101" model="2898" posX="1487.83643" posY="-1810.18872" posZ="12.55000" rotX="0.00000" rotY="0.00000" rotZ="0.00000" dimension="0" interior="0" /> <object id="102" model="2898" posX="1487.83643" posY="-1804.79541" posZ="12.55000" rotX="0.00000" rotY="0.00000" rotZ="0.00000" dimension="0" interior="0" /> <object id="103" model="2898" posX="1487.83643" posY="-1799.38391" posZ="12.55000" rotX="0.00000" rotY="0.00000" rotZ="0.00000" dimension="0" interior="0" /> <object id="104" model="2898" posX="1487.83643" posY="-1793.98035" posZ="12.55000" rotX="0.00000" rotY="0.00000" rotZ="0.00000" dimension="0" interior="0" /> <object id="105" model="2898" posX="1487.83643" posY="-1788.55884" posZ="12.55000" rotX="0.00000" rotY="0.00000" rotZ="0.00000" dimension="0" interior="0" /> <object id="106" model="2898" posX="1487.85645" posY="-1783.12964" posZ="12.55000" rotX="0.00000" rotY="0.00000" rotZ="0.00000" dimension="0" interior="0" /> <object id="107" model="2898" posX="1487.85645" posY="-1777.79871" posZ="12.55000" rotX="0.00000" rotY="0.00000" rotZ="0.00000" dimension="0" interior="0" /> <object id="108" model="2898" posX="1487.85645" posY="-1772.40625" posZ="12.55000" rotX="0.00000" rotY="0.00000" rotZ="0.00000" dimension="0" interior="0" /> <object id="109" model="2898" posX="1487.85645" posY="-1767.00732" posZ="12.55000" rotX="0.00000" rotY="0.00000" rotZ="0.00000" dimension="0" interior="0" /> <object id="110" model="2898" posX="1487.85645" posY="-1761.59387" posZ="12.55000" rotX="0.00000" rotY="0.00000" rotZ="0.00000" dimension="0" interior="0" /> <object id="111" model="2898" posX="1487.85645" posY="-1756.17200" posZ="12.55000" rotX="0.00000" rotY="0.00000" rotZ="0.00000" dimension="0" interior="0" /> <object id="112" model="2898" posX="1487.85645" posY="-1750.75220" posZ="12.55000" rotX="0.00000" rotY="0.00000" rotZ="0.00000" dimension="0" interior="0" /> </map>
  2. Check that the song exists, it should work.
  3. With getTickCount() the script is more efficient: local SECONDS = 20 -- 20 seconds between command use local tick = {} function fix(playerSource) local theVehicle = getPedOccupiedVehicle(playerSource) if theVehicle and getVehicleController ( theVehicle ) == playerSource then if getTickCount() - (tick[playerSource] or 0) >= SECONDS * 1000 then fixVehicle (theVehicle) tick[playerSource] = getTickCount() outputChatBox ("Your vehicle has been repaired !" , thePlayer) else outputChatBox ("Don't abuse the command!" , thePlayer) end end end addCommandHandler("repair" , fix) Change 'SECONDS' variable to whatever you need.
  4. Exports are slow too, and it's much faster to setElementData rather than creating a custom function, and adding it to the meta.xml. If I need to share a table with all server resources, I set the element data to the 'root', and disable data client synchronization to save bandwidth since the data is not needed client side. local mytable = { a = 1, b = 2, c = 3 } setElementData(root, "mytable", mytable, false) -- Disable sync with fourth argument -- On the other resource local mytable = getElementData(root, "mytable")
  5. local r, g, b = 255, 255, 255 dxSetShaderValue(theTechnique,"color", r / 255, g / 255, b / 255) #include "mta-helper.fx" float size = 30.0; float speed= .75; float2 resolution = float2(1, 1); float intensity = 1; float opacity = 1; float3 color = float3(1.0, 1.0, 1.0); float rate = 1.0; struct vsin { float4 Position : POSITION; float2 TexCoord : TEXCOORD0; }; struct vsout { float4 Position : POSITION; float2 TexCoord : TEXCOORD0; }; vsout vs(vsin input) { vsout output; output.Position = mul(input.Position, gWorldViewProjection); output.TexCoord = input.TexCoord; return output; } float random(float2 co) { return frac(sin(dot(co.xy ,float2(12.9898,78.233))) * 43758.5453); } float3 random_color(float2 coords){ float a = floor(random(coords.xy*6.896)*7.); //(2^3)-1 // { return float3(0.,0.,0.); } //BLACK if (a == 0.) { return float3(1.,0.,0.); } //RED if (a == 1.) { return float3(0.,1.,0.); } //GREEN if (a == 2.) { return float3(1.,1.,0.); } //YELLOW if (a == 3.) { return float3(0.,0.,1.); } //BLUE if (a == 4.) { return float3(1.,0.,1.); } //MAGENTA if (a == 5.) { return float3(0.,1.,1.); } //CYAN else { return float3(1.,1.,1.); } //WHITE } float tri(float x){ x = (x%2.0); if (x > 1.0) x = -x+2.0; return x; } float chess_dist(float2 uv) { return max(abs(uv.x),abs(uv.y)); } float4 ps(vsout input) : COLOR0 { float time = gTime * (0.5 + rate * 2.); float2 uv = -1.0 + 2.0 * input.TexCoord.xy / resolution.xy; uv.y *= resolution.y/resolution.x; float3 colors = color * random_color(floor(uv*size))*step(chess_dist((frac(uv*size)-.5)*2.),tri((((time*speed)+((random(floor(uv*size)))*2.))))); float outFX = saturate(opacity * colors); return float4(colors * intensity, outFX); } float countDepthBias(float minBias, float maxBias, float closeBias) { float4 viewPos = mul(float4(gWorld[3].xyz, 1), gView); float4 projPos = mul(viewPos, gProjection); float depthImpact = minBias + ((maxBias - minBias) * (1 - saturate(projPos.z / projPos.w))); depthImpact += closeBias * saturate(0.5 - (viewPos.z / viewPos.w)); return depthImpact; } technique tec { pass Pass0 { SlopeScaleDepthBias = -0.5; DepthBias = countDepthBias(-0.000002, -0.0004, -0.001); AlphaBlendEnable = false; AlphaRef = 1; VertexShader = compile vs_3_0 vs(); PixelShader = compile ps_3_0 ps(); } } Try this
  6. Without code it's too hard to guess
  7. local ypos = ((totalheight * scrollheight) - (youriconsize / 2)) / (totalitems - totalheight) Change to your needs
  8. If you don't need very accurate positions, math.floor the coordinates. Anyways, assuming MTA 'fixes' this issue, you are going to be using the same amount of bandwidth vs calling the client fix, since the server will ask the client the camera matrix constantly to have it updated on server-side
  9. I have been making some tests since I still have this issue, added an IF statement to check if time was set or not since the Wiki says that it returns true if set succesfully, false otherwise: This is my current code with the IF statement: if setTime(22, 0) then setMinuteDuration(600000) -- 10 minutes = 1 ingame minute outputDebugString("[RACE] Time set") else outputDebugString("[RACE] Could not set game time") end And this is what I got: What could be the reason of setTime() returning false? Thanks EDIT: Okay so nevermind, I'm stupid.. I had this hidden somewhere _setTime = setTime function setTime() end Can be closed, thanks for your help!
  10. Call client function getCameraMatrix and return it to server
  11. Just get the cursor position with getCursorPosition, and if it's inside the image, change the image color to pink and you will have that effect.
  12. I can only set once setTime clientside, if I want to change it again it doesn't have effect and the time stays the same Is this a known bug? thanks
  13. It is almost impossible to be faster than what MTA takes to load/delete the file
  14. You can read the font data from server, send it to client, load the font and then fileDelete
  15. OMG never heard of that function, I literally spent 3 hours messing with setElementCollidableWith and setElementCollisionsEnabled, thanks!
  16. local plants = {} function iniciarFarm8( x, y, z ) --animation = setPedAnimation(source, "medic", "CPR", -1, false, false, false, false) --setTimer(function() plants[source] = createObject ( 862, x , y , z - 1 , 0, 0, 0 ) --end, 6500, 1) end addEvent ("iniciaJob8", true) addEventHandler ("iniciaJob8", getRootElement(), iniciarFarm8) function plantDestroy () destroyElement ( plants[source] ) end addEvent ("onDestroyElement", true) addEventHandler ("onDestroyElement", getRootElement(), plantDestroy)
  17. Hi, I have this strange issue with setElementCollisionsEnabled, the helicopter rotor still has collisions enabled, as you can see on the image. Here is my script: function disableCollisions() local ghostmode = true local tp = getElementData(localPlayer, "room_id") if tp == "Shooter" then ghostmode = getElementData(root, "shooter.ghostmode") elseif tp == "OJ" then ghostmode = getElementData(root, "oj.ghostmode") end local vehicles = getElementsByType("vehicle", root, true) for i = 1, #vehicles do for k = 1, #vehicles do setElementCollidableWith(vehicles[i], vehicles[k], getElementInterior(vehicles[i]) == 100 and false or not ghostmode) end end local players = getElementsByType("player", root, true) for i = 1, #players do setElementCollisionsEnabled(players[i], players[i] == localPlayer and true or false) end end Is there any way to disable this? thanks
  18. I am having a little problem with my server, I have a multi gamemode script and a VPS with 1GB of RAM, after an hour or so the server crashes due to memory limitations, it seems that it reaches the 1GB of RAM limit, and since the VPS doesn't have swap, the server crashes. I use mySQL and there are no 'big' variables server-side, almost all request are sent to mySQL (for example, to get map name) When I start the server the first time, the memory usage is around 350mb If I stop all the resources, the memory doesn't go down, so for example if memory usage is 700mb and I stop all resources (actually, it's only ONE resource that holds everything), the memory stays on 700mb. Is the solution to get more RAM or there is another issue? Thanks.
  19. resourceRoot is used only on 'onClientResourceStart' and on 'onResourceStart' If you use root on the events mentioned above, when any resource starts, it will get triggered for all resources, so with resourceRoot it will get only triggered for the resource that you you want to know that it started root is used on any other events, like 'onPlayerJoin' or 'onClientMarkerHit'
  20. I will try ASAP, thanks
  21. setAmbientSoundEnabled( "general", false ) setAmbientSoundEnabled( "gunfire", false )
  22. If I have a string with 'ilegal' characters, Mysql throws an error (1064) local name = getPlayerName(source) -- Let's say that the string returned by getPlayerName is Fe'che dbExec(db, "UPDATE stats SET anyvalue = '" ..name.. "'") I tried with gsub -> name:gsub("\'", "\''"), but no success
  23. You are posting client side scripts, if it's a fuel system, the server-side scripts do the math to 'lower' fuel, so go check server side scripts for any errors (you can use /debugscript 3)