Hallo, ich wollte das Script von der Map Seven Towers auf meiner Map verwenden. Habe ein bisschen gegoogelt und ein Script gefunden. Habe ein bisschen was hinzugefügt und die Koordinaten eingefügt.
Spoiler anzeigen
Lua
pos = {
[3]="2719.80005, -4463.3999, 91.9",
[4]="2682.5, -4449.1001, 102.2"
[5]="2706.69995, -4444.2002, 102.2"
[6]="2675.80005, -4471.3999, 87.2"
[7]="2700.8999, -4499, 71.9"
[8]="2711.6001, -4486.5, 78.7"
[9]="2697.19995, -4475.2998, 85.7"
[10]="2703.19995, -4459.7998, 93.4"
[11]="2689.80005, -4461.6001, 93.4"
[12]="2748.3999, -4510.7998, 75.9"
[13]="2765.3999, -4506.8999, 85.8"
[14]="2797.1001, -4517.6001, 104.1"
[15]="2797.6001, -4540, 104.1"
[16]="2777.3999, -4534.2998, 92.6"
[17]="2781.19995, -4513.7998, 95.9"
[18]="2782, -4559, 95.9"
[19]="2767.1001, -4552.7998, 88.2"
[20]="2762.30005, -4536.3999, 83.9"
[21]="2748.3999, -4534.2002, 77.7"
[22]="2748.19995, -4556.6001, 75.7"
[23]="2766.5, -4569.7998, 86.9"
[24]="2732.8999, -4605.7998, 86.9"
[25]="2680.80005, -4614.7998, 95.7"
[26]="2709.5, -4620.1001, 97.9"
[27]="2693.19995, -4633.2998, 105.9"
[28]="2678.19995, -4596.2002, 83.1"
[29]="2696.3999, -4589.7998, 78.9"
[30]="2717.80005, -4586.1001, 76.7"
[31]="2716.5, -4603.5, 87.9"
[32]="2696.69995, -4606.8999, 89.7"
[33]="2697.5, -4618.7002, 97.7"
[34]="2712.80005, -4632.5, 105.7"
[35]="2724.80005, -4620.8999, 97.2"
[36]="2673.30005, -4628.5, 103.2"
[37]="2665.30005, -4612.7998, 92.4"
[38]="2672, -4588.3999, 79.9"
[39]="2695.80005, -4576.8999, 72.9"
[40]="2658.30005, -4552.2002, 72.9"
[41]="2659.3999, -4531.3999, 72.9"
[42]="2644.5, -4505.7998, 81.9"
[43]="2622.30005, -4501.7998, 93.8"
[44]="2610.1001, -4515.2998, 101.6"
[45]="2599.5, -4538.3999, 107.4"
[46]="2643.1001, -4540.5, 81.6"
[47]="2645.30005, -4561.7998, 81.6"
[48]="2625.5, -4565.2998, 92.4"
[49]="2626.69995, -4540.3999, 90.8"
[50]="2636.5, -4524.1001, 86.6"
[51]="2607.3999, -4555.2998, 102.1"
[52]="2631, -4553.1001, 89.1"
[53]="2681.19995, -4490.1001, 75.1"
[54]="2720.8999, -4492.8999, 73.9"
[55]="2733.80005, -4474.7002, 85.4"
[56]="2729.19995, -4442.8999, 102.8"
[57]="2727.69995, -4507.6001, 70.8"
[58]="2730.69995, -4525.7998, 70.8"
[59]="2728, -4549.2002, 70.8"
[60]="2720.5, -4557.3999, 70.8"
[61]="2710.3999, -4558.2998, 70.8"
[62]="2710.3999, -4547.5, 70.8"
[63]="2707.80005, -4522.1001, 70.8"
[64]="2681.1001, -4518.5, 70.8"
[65]="2691.80005, -4508.7998, 70.8"
[66]="2678.5, -4534.8999, 70.8"
[67]="2670.8999, -4521.6001, 70.8"
[68]="2672.1001, -4548.2998, 70.8"
[69]="2680.5, -4559.5, 70.8"
[70]="2688.5, -4548.8999, 70.8"
[71]="2691.80005, -4566.7002, 70.8"
[72]="2702, -4558.2998, 70.8"
[73]="2691.80005, -4535.6001, 70.8"
[74]="2711.80005, -4534.3999, 70.8"
[75]="2694.8999, -4521.7002, 70.8"
[76]="2701.19995, -4542.2002, 70.8"
[77]="2712.5, -4505.6001, 70.8"
}
cars={
[1]=401,
[2]=402,
[3]=403,
[4]=405,
[5]=407,
[6]=408,
[7]=411,
[8]=412,
[9]=413,
[10]=414,
[11]=415,
[12]=416,
[13]=419,
[14]=420,
[15]=421,
[16]=422,
[17]=424,
[18]=429,
[19]=436,
[20]=438,
[21]=439,
[22]=445,
[23]=451,
[24]=456,
[25]=458,
[26]=461,
[27]=462,
[28]=463,
[29]=468,
[30]=470,
[31]=471,
[32]=475,
[33]=477,
[34]=479,
[35]=480,
[36]=481,
[37]=489,
[38]=491,
[39]=494,
[40]=495,
[41]=496,
[42]=500,
[43]=504,
[44]=506,
[45]=521,
[46]=522,
[47]=524,
[48]=527,
[49]=529,
[50]=533,
[51]=535,
[52]=536,
[53]=541,
[54]=542,
[55]=543,
[56]=546,
[57]=549,
[58]=552,
[59]=555,
[60]=556,
[61]=558,
[62]=559,
[63]=560,
[67]=561,
[68]=562,
[69]=565,
[70]=568,
[71]=573,
[72]=575,
[73]=578,
[74]=580,
[75]=581,
[76]=582,
[77]=585,
[78]=586,
[79]=587,
[80]=589,
[81]=600,
[82]=602,
[83]=603,
[84]=609,
[85]=417,
[86]=425, --Hunter
[87]=447, --Seasparrow
[88]=469,
[89]=487,
[90]=488,
[91]=520, --Hydra
[92]=548,
[93]=563,
[94]=432, --Rhino
}
function startt ()
srandomveh()
end
addEventHandler("onResourceStart", getResourceRootElement(), startt)
function srandomveh ()
local zahlm = math.random (3, 77)
local portstring = pos[tonumber(zahlm)]
local mX = gettok ( portstring, 1, string.byte(',') )
local mY = gettok ( portstring, 2, string.byte(',') )
local mZ = gettok ( portstring, 3, string.byte(',') )
ramarker = createMarker (mX, mY, mZ, "checkpoint", 2.25, 255,0,0)
addEventHandler( "onMarkerHit", ramarker, newmarker)
addEventHandler( "onMarkerHit", ramarker, randomveh)
end
function newmarker ()
destroyElement(ramarker)
srandomveh()
end
function randomveh (thePlayer)
if getElementType(thePlayer)=="player" then
local veh = getPedOccupiedVehicle (thePlayer)
local zahlv = math.random (1, 94)
local x,y,z = getElementPosition (veh)
setElementModel (veh, cars[zahlv])
local veh2 = getElementModel (veh)
setElementPosition (veh , x, y, z+0.25)
fixVehicle (veh)
if zahlv == 86 then --Hunter
outputChatBox(getPlayerName(thePlayer).."#FF0000 got a Hunter!")
end
if zahlv == 87 then --Seasparrow
outputChatBox(getPlayerName(thePlayer).."#FF0000 got a Seasparrow!")
end
if zahlv == 91 then --Hydra
outputChatBox(getPlayerName(thePlayer).."#FF0000 got a Hydra!")
end
if zahlv == 94 then --Rhino
outputChatBox(getPlayerName(thePlayer).."#FF0000 got a Rhino!")
end
end
end
Alles anzeigen
Ich kann zwar fahren, aber es erscheinen keine Marker. Habe auch schon /debugscript 3 benutzt und dor stand nichts.