function showMarker(plr, seat) if seat == 0 then local x,y,z = getVehicleComponentPosition(source, "boot_dummy", "parent") marker = createMarker(x, y, z, "cylinder", 2.0, 255, 0, 0, 150) attachElements ( marker, source, x, y, z ) end end addEventHandler("onClientVehicleExit", resourceRoot, showMarker)