function Alapkocsi() local alapkocsi1 = createVehicle(411, 61.015625 , -57.197265625 , 0.609375) toggleVehicleRespawn(alapkocsi1, true) local alapkocsi2 = createVehicle(411, 64.0302734375 , -63.6484375 + 10 , 0.609375) toggleVehicleRespawn(alapkocsi2, true) local alapkocsi3 = createVehicle(411, 68.33203125 , -69.7998046875 + 10, 0.609375) toggleVehicleRespawn(alapkocsi3, true) endaddEventHandler(\"onResourceStart\", getRootElement(), Alapkocsi)
addEventHandler(\"onResourceStart\", getResourceRootElement(getThisResource()),function() createPickup(134.8515625, 1930.1376953125, 19.217227935791, 1239) createPickup(135.3369140625, 1954.451171875, 19.424501419067, 1239)end)addCommandHandler(\"kapu\",function(player, command) if getElementPosition(player) == 134.8515625, 1930.1376953125, 19.217227935791 then setElementPosition(player, 135.3369140625, 1954.451171875, 19.424501419067) elseif getElementPosition(player) == 135.3369140625, 1954.451171875, 19.424501419067 then setElementPosition(player, 134.8515625, 1930.1376953125, 19.217227935791) else outputChatBox(\"Nem vagy a kapunál!\", player) end end)
getElementPosition(player) == 134.8515625, 1930.1376953125, 19.217227935791
addEventHandler(\"onResourceStart\", getResourceRootElement(getThisResource()),function() createPickup(134.8515625, 1930.1376953125, 19.217227935791, 1239) createPickup(135.3369140625, 1954.451171875, 19.424501419067, 1239)end)addCommandHandler(\"kapu\",function(player, command) pX,pY,pZ = getElementPosition(player) if pX,pY,pZ == 134.8515625, 1930.1376953125, 19.217227935791 then setElementPosition(player, 135.3369140625, 1954.451171875, 19.424501419067) elseif pX,pY,pZ == 135.3369140625, 1954.451171875, 19.424501419067 then setElementPosition(player, 134.8515625, 1930.1376953125, 19.217227935791) else outputChatBox(\"Nem vagy a kapunál!\", player) end end)
addEventHandler(\"onResourceStart\", getResourceRootElement(getThisResource()),function() createPickup(134.8515625, 1930.1376953125, 19.217227935791, 1239) createPickup(135.3369140625, 1954.451171875, 19.424501419067, 1239)end)addCommandHandler(\"kapu\",function(player, command) pX,pY,pZ = getElementPosition(player) if pX,pY,pZ == 134.8515625, 1930.1376953125, 19.217227935791 then setElementPosition(player, 135.3369140625, 1954.451171875, 19.424501419067) elseif pX,pY,pZ == 135.3369140625, 1954.451171875, 19.424501419067 then setElementPosition(player, 134.8515625, 1930.1376953125, 19.217227935791) else outputChatBox(\"Nem vagy a kapunál!\", player) end end) Szerintem igy jó, de ugye tudod hogy soha az életben nem fog senki pontosan úgy állni hogy ezek legyenek a kordinátái? Használj markert.