function adjadmaoda(hitPlayer,matchingDimension) if matchingDimension and hitPlayer == localPlayer then if source == munkaMarker then triggerServerEvent(\"spawnVeh\",localPlayer,localPlayer) end endendaddEventHandler(\"onClientMarkerHit\", munkaMarker, MarkerHit)[code*]Hogyan tudnék lerakni markert ami ehhez van kötve??
function createMarkerFunc()marker = createMarker(x, y, z,\"cylinder\",1.5,225,0,111,255,getRootElement())endfunction spawnVeh (hitElement)createVehicle (hitElement, jármű id, x, y, z, 0, 0, rotációZ )end addEventHandler(\"onMarkerHit\", marker, spawnVeh)
marker = createMarker(1471.23401, -1741.76306, 13.54688,\"cylinder\",1.5,225,0,111,255,getRootElement())function spawnVeh (hitElement, thePlayer)x,y,z = getElementPosition (marker)local carc = createVehicle (602, x+10,y,z, 0, 0, 222)carc (hitElement)end--Készitette: Greg (ne editeld megszenvedtem érte!) addEventHandler(\"onMarkerHit\", marker, spawnVeh)
marker = createMarker(x, y, z,\"cylinder\",1.5,225,0,111,255,getRootElement())function delVeh (hitElement, modelID)local vehicles = getElementsByType(\"vehicle\")for i,v in ipairs(vehicles) doif (getElementModel(v) == annak a kocsinak az idje amit törölhet!) then destroyElement(v)endendend addEventHandler (\"onMarkerHit\", marker, delVeh)