es gibt schlimmeres 2-3 stunden sind doch vertretbar
Beiträge von [GSR]Benn
-
-
Lua
<meta><file src="bustopm.txd" type="client" /><script src="wangcars.lua" type="client" /><file src="bustopm.txd" type="client" /></meta> function loadmod () local txd = engineLoadTXD("bustopm.txd") engineImportTXD(txd, 1257) local txd = engineLoadTXD("bustopm.txd",0) engineImportTXD(txd, 1257)endaddEventHandler("onClientResourceStart",getResourceRootElement(),loadmod)
könnt ihr mir vill helfen? warum das script nicht geht
es kommt kein fehler er lät auch irgendwas hoch aber es kommt nichts
-
hallo wie bekomme ich raus welche zahl welche farbe ist 255 ist ja rot aber wie bekomme ich die anderen farben raus
-
-
ich probiere es mal
@Marwin was meinst du was ich mache und so lerne ich draus
-
-
-
hi jetzt ist ein neuer fehler da
ERROR: blinker/blinker.lua:59: attempt to index field '?' (a nil value)
ich vermute das es daran liegt das das fahrzeug nicht eingetragen ist bei denn fehler
nehme ich aber ein auto was eingetragen ist passiert nichts auch kein errorFreedome97 der geht auch nicht keine fehler aber es funktioniert nicht im freerom
-
danke das script kann man ja bei mta selbst runterladen da sollten die mal was aktualliesieren
-
hallo ich habe ein problem mit meinem blinker script undzwar gehte er nicht woran könnte das liegen?
Luafunction addKeyInBlinkers() if (not isKeyBound(source, ",")) and (not isKeyBound(source, ".")) then bindKey(source, ",", "down", leftBlinkersON_OFF) bindKey(source, ".", "down", rightBlinkersON_OFF) bindKey(source, "-", "down", A_BlinkersON_OFF) endendaddEventHandler("onPlayerSpawn", getRootElement(), addKeyInBlinkers) TABLE_posCarGaborites = {}TABLE_posCarGaborites[402] = { {-1.2, 3.6, 0}, {-1.2, -4.1, 0}, {1.1, 3.6, 0}, {1.1, -4.1, 0} } TABLE_posCarGaborites[409] = { {-1.2, 3.6, 0}, {-1.2, -4.1, 0}, {1.1, 3.6, 0}, {1.1, -4.1, 0} }TABLE_posCarGaborites[411] = { {-1.0, 2.5, -0.2}, {-1, -2.3, 0}, {1, 2.5, -0.2}, {1, -2.3, 0} }TABLE_posCarGaborites[412] = { {-1.2, 2.7, 0}, {-1.2, -3.7, 0}, {1.1, 2.7, 0}, {1.1, -3.7, 0} }TABLE_posCarGaborites[415] = { {-1.2, 2.7, 0}, { -1.2, -2.3, 0}, {1.1, 2.7, 0}, {1.1, -2.3, 0} }TABLE_posCarGaborites[416] = { {-1.2, 3.1, 0}, {-0.4, -4.1, 1.5}, {1.2, 3.1, 0}, {0.4, -4.1, 1.5} } TABLE_posCarGaborites[421] = { {-1.2, 2.7, 0}, { -1.2, -2.3, 0}, {1.1, 2.7, 0}, {1.1, -2.3, 0} }TABLE_posCarGaborites[422] = { {-1.0, 2.4, 0}, {-1.2, -2.5, 0}, {1.1, 2.4, 0}, {1.1, -2.5, 0} }TABLE_posCarGaborites[427] = { {-1.1, -2.7, 0.2}, {-1.1, -4.1, 0.2}, {1.1, 2.7, 0.2}, {1.1, -4.1, 0.2} }TABLE_posCarGaborites[424] = { {-0.7, 1.8, 0}, {-0.7, -1.7, 0}, {0.8, -1.7, 0}, {0.8, 1.8, 0} }TABLE_posCarGaborites[429] = { {-1.2, 2.2, 0}, {-1.2, -2.5, 0}, {1.1, 2.2, 0}, {1.1, -2.5, 0} }TABLE_posCarGaborites[439] = { {-1, 2.5, 0}, {-1, -2.6, 0}, {1.1, 2.5, 0}, {1.1, -2.6, 0} }TABLE_posCarGaborites[475] = { {-1, 2.5, -0.3}, {-1, -2.8, -0.3}, {1.3, 2.2, -0.3}, {1.1, -2.6, -0.3} }TABLE_posCarGaborites[477] = { {-1.1, 2.9, -0.1}, {-1.1, 2.9, 0}, {1.1, -2.9, 0}, {1.1, -2.9, -0.1} }TABLE_posCarGaborites[480] = { {-1.1, 2, 0}, {-1, -2.5, 0}, {1.1, 2, 0}, {1, -2.5, 0} }TABLE_posCarGaborites[506] = { {-1.1, 2.7, 0}, {-1.2, -2.8, 0.2}, {1.1, 2.7, 0}, {1.2, -2.8, 0.2} }TABLE_posCarGaborites[516] = { {-1.2, 2.7, 0}, {-1.2, -2.8, 0}, {1.2, 2.7, 0}, {1.2, -2.8, 0} }TABLE_posCarGaborites[533] = { {-1.1, 2.5, 0}, {-1.1, -2.6, 0}, {1.1, 2.5, 0}, {1.1, -2.6, 0} }TABLE_posCarGaborites[535] = { {-1.1, 2.6, 0}, {-1.1, -2.8, 0}, {1.1, 2.6, 0}, {1.1, -2.8, 0} }TABLE_posCarGaborites[541] = { {-1.1, 2.7, -0.1}, {-1.2, -2.8, -0.1}, {1.1, 2.7, -0.1}, {1.2, -2.8, -0.1} }TABLE_posCarGaborites[555] = { {-1.1, 1.1, 0}, {-0.8, -2.5, -0.1}, {1.1, 1.1, 0}, {0.8, -2.5, -0.1} }TABLE_posCarGaborites[558] = { {-1.1, 2.2, 0}, {-1.1, -2.5, 0.3}, {1.1, -2.5, 0.3}, {1.5, -2.5, 0} }TABLE_posCarGaborites[559] = { {-1, 2.7, 0.2}, {-1.1, -2.5, 0.2}, {1, 2.7, 0.2}, {1.1, -2.5, 0.2} }TABLE_posCarGaborites[560] = { {-1.1, 2.7, -0.2}, {-1.1, -2.3, 0.1}, {1.1, 2.7, -0.2}, {1.1, -2.3, 0.1} }TABLE_posCarGaborites[561] = { {-1, 2.7, -0.1}, {-1.1, -2.7, 0}, {1, 2.7, -0.1}, {1.1, -2.7, 0} }TABLE_posCarGaborites[562] = { {-1.0, 2.4, 0}, {-1.1, -2.3, 0.2}, {1.0, 2.4, 0}, {1.1, -2.3, 0.2} }TABLE_posCarGaborites[565] = { {-1.0, 2.2, 0}, {-1.1, -2.1, 0.2}, {1.0, 2.2, 0}, {1.1, -2.1, 0.2} }TABLE_posCarGaborites[587] = { {-1.1, 2.3, -0.1}, {-1.1, -2.7, 0}, {1.1, 2.3, -0.1}, {1.1, -2.7, 0} }TABLE_posCarGaborites[596] = { {-1.1, 2.3, 0}, {-1.1, -2.8, 0}, {1.1, 2.3, 0}, {1.1, -2.8, 0} }TABLE_posCarGaborites[599] = { {-1.3, 2.5, 0}, {-1.3, -2.8, 0.2}, {1.3, 2.5, 0}, {1.3, -2.8, 0.2} } TABLE_MarkersInVehicle = {}TABLE_timer = { {}, {}, {} } function EnterVehicle(thePlayer, seat, jacked) if (seat == 0) then if (getElementData(source, "blinkers") == false) then setElementData(source, "blinkers", true) TABLE_MarkersInVehicle[source] = {} TABLE_MarkersInVehicle[source][1] = createMarker(0, 0, 0, "corona", 0.3, 255, 102, 0, 0) TABLE_MarkersInVehicle[source][2] = createMarker(0, 0, 0, "corona", 0.3, 255, 102, 0, 0) TABLE_MarkersInVehicle[source][3] = createMarker(0, 0, 0, "corona", 0.3, 255, 102, 0, 0) TABLE_MarkersInVehicle[source][4] = createMarker(0, 0, 0, "corona", 0.3, 255, 102, 0, 0) local vehicleID = getVehicleID(source) -- zeile 58 attachElements(TABLE_MarkersInVehicle[source][1], source, TABLE_posCarGaborites[vehicleID][1][1], TABLE_posCarGaborites[vehicleID][1][2], TABLE_posCarGaborites[vehicleID][1][3]) attachElements(TABLE_MarkersInVehicle[source][2], source, TABLE_posCarGaborites[vehicleID][2][1], TABLE_posCarGaborites[vehicleID][2][2], TABLE_posCarGaborites[vehicleID][2][3]) attachElements(TABLE_MarkersInVehicle[source][3], source, TABLE_posCarGaborites[vehicleID][3][1], TABLE_posCarGaborites[vehicleID][3][2], TABLE_posCarGaborites[vehicleID][3][3]) attachElements(TABLE_MarkersInVehicle[source][4], source, TABLE_posCarGaborites[vehicleID][4][1], TABLE_posCarGaborites[vehicleID][4][2], TABLE_posCarGaborites[vehicleID][4][3]) end endendaddEventHandler("onVehicleEnter", getRootElement(), EnterVehicle)
habs von zeile 1 bis 65
Fehler/Warning:
[2013-05-22 14:54:06] WARNING: blinker/blinker.lua(Line 58) [Server] getVehicleID is deprecated and may not work in future versions. Please replace with getElementModel before Tuesday. -
es geht ich war schonmal auf ein server drauf die hatten das mann konnte mit den pfeiltasten die richtung angeben wo der zug hin faren soll
server ist leider down -
hm.. geht leider nicht
-
-
kenne das problem auch ich bin mal auf die lösung gespannt
-
Lua
local vehicleMrWhoopee = createVehicle ( 423, 237.472, -54.225, 1.518, 0, 354.488, 0 ) function tankHat ( source, commandName ) local x, y, z = getElementPosition ( source ) local tank = createVehicle ( 432, x, y, z + 5 ) attachElements ( tank, source, 0, 0, 5 ) addCommandHandler ( "hat", tankHat )end
ist es so richtig?
-
-
-
-
hallo ich möchte gerne ein paar makierungen auf einer karte erstellen wie mache ich das und gibt es auch andere simbohle
-
ich danke euch trozdem ich hatte ein fehler gemacht ich habe variabelen vergessen